diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-09-24 12:52:58 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-09-24 12:52:58 +0000 |
commit | 5d6a56aae00741b3912a05e44b3af6c7b8735e62 (patch) | |
tree | 1b877a3aeebbe5172b7c37009f38e1fabb7bd1f0 | |
parent | 6215311186996534777bb9a6b675831a54fd808d (diff) | |
download | infinity-for-reddit-5d6a56aae00741b3912a05e44b3af6c7b8735e62.tar infinity-for-reddit-5d6a56aae00741b3912a05e44b3af6c7b8735e62.tar.gz infinity-for-reddit-5d6a56aae00741b3912a05e44b3af6c7b8735e62.tar.bz2 infinity-for-reddit-5d6a56aae00741b3912a05e44b3af6c7b8735e62.tar.lz infinity-for-reddit-5d6a56aae00741b3912a05e44b3af6c7b8735e62.tar.xz infinity-for-reddit-5d6a56aae00741b3912a05e44b3af6c7b8735e62.tar.zst infinity-for-reddit-5d6a56aae00741b3912a05e44b3af6c7b8735e62.zip |
Show subscribed users for the anonymous account.
2 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java index 40ae887f..47a62003 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java @@ -763,7 +763,7 @@ public class MainActivity extends BaseActivity implements SortTypeSelectionCallb if (mAccessToken != null) { intent = new Intent(MainActivity.this, SubscribedThingListingActivity.class); } else { - intent = new Intent(MainActivity.this, AnonymousSubscriptionsActivity.class); + intent = new Intent(MainActivity.this, SubscribedThingListingActivity.class); } } else if (stringId == R.string.multi_reddit) { intent = new Intent(MainActivity.this, SubscribedThingListingActivity.class); diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubscribedThingListingActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubscribedThingListingActivity.java index 0d33b2a8..e5f0d1e2 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubscribedThingListingActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubscribedThingListingActivity.java @@ -387,7 +387,7 @@ public class SubscribedThingListingActivity extends BaseActivity implements Acti SubscribedSubredditsListingFragment fragment = new SubscribedSubredditsListingFragment(); Bundle bundle = new Bundle(); bundle.putBoolean(SubscribedSubredditsListingFragment.EXTRA_IS_SUBREDDIT_SELECTION, false); - bundle.putString(SubscribedSubredditsListingFragment.EXTRA_ACCOUNT_NAME, mAccountName); + bundle.putString(SubscribedSubredditsListingFragment.EXTRA_ACCOUNT_NAME, mAccountName == null ? "-" : mAccountName); bundle.putString(SubscribedSubredditsListingFragment.EXTRA_ACCESS_TOKEN, mAccessToken); fragment.setArguments(bundle); return fragment; @@ -395,7 +395,7 @@ public class SubscribedThingListingActivity extends BaseActivity implements Acti case 1: { FollowedUsersListingFragment fragment = new FollowedUsersListingFragment(); Bundle bundle = new Bundle(); - bundle.putString(FollowedUsersListingFragment.EXTRA_ACCOUNT_NAME, mAccountName); + bundle.putString(FollowedUsersListingFragment.EXTRA_ACCOUNT_NAME, mAccountName == null ? "-" : mAccountName); bundle.putString(FollowedUsersListingFragment.EXTRA_ACCESS_TOKEN, mAccessToken); fragment.setArguments(bundle); return fragment; |