aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-09-27 11:32:57 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-09-27 11:32:57 +0000
commit2f649425841d97256bb035343ee7139825f13e19 (patch)
treea702a7d7f1468567c73fd7578d7255e3e0f173d6 /app/src/main/java
parent50de5bb44a9ad36a15477ffbc3a7f7eb1c9e9e77 (diff)
downloadinfinity-for-reddit-2f649425841d97256bb035343ee7139825f13e19.tar
infinity-for-reddit-2f649425841d97256bb035343ee7139825f13e19.tar.gz
infinity-for-reddit-2f649425841d97256bb035343ee7139825f13e19.tar.bz2
infinity-for-reddit-2f649425841d97256bb035343ee7139825f13e19.tar.lz
infinity-for-reddit-2f649425841d97256bb035343ee7139825f13e19.tar.xz
infinity-for-reddit-2f649425841d97256bb035343ee7139825f13e19.tar.zst
infinity-for-reddit-2f649425841d97256bb035343ee7139825f13e19.zip
Enable subreddit multiselection in anonymous mode.
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubredditMultiselectionActivity.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubredditMultiselectionActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubredditMultiselectionActivity.java
index f2d00212..a0b9acbb 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubredditMultiselectionActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubredditMultiselectionActivity.java
@@ -12,7 +12,6 @@ import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
-import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
@@ -81,7 +80,6 @@ public class SubredditMultiselectionActivity extends BaseActivity implements Act
@Inject
CustomThemeWrapper mCustomThemeWrapper;
public SubscribedSubredditViewModel mSubscribedSubredditViewModel;
- private String mAccessToken;
private String mAccountName;
private LinearLayoutManagerBugFixed mLinearLayoutManager;
private SubredditMultiselectionRecyclerViewAdapter mAdapter;
@@ -132,12 +130,8 @@ public class SubredditMultiselectionActivity extends BaseActivity implements Act
mSwipeRefreshLayout.setEnabled(false);
- mAccessToken = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCESS_TOKEN, null);
- mAccountName = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCOUNT_NAME, null);
- if (mAccessToken == null) {
- Toast.makeText(this, R.string.logged_out, Toast.LENGTH_SHORT).show();
- finish();
- }
+ mAccountName = mCurrentAccountSharedPreferences.getString(SharedPreferencesUtils.ACCOUNT_NAME, "-");
+
bindView();
}