From 3c4452261d1f65cf4ff9a76708202fe4637068d1 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Fri, 23 Apr 2021 16:05:34 +0800 Subject: [PATCH] Fix favorite things for logged-in account failed. --- .../infinityforreddit/activities/SubredditSelectionActivity.java | 1 + .../activities/SubscribedThingListingActivity.java | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubredditSelectionActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubredditSelectionActivity.java index 1029469d..e1458042 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubredditSelectionActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubredditSelectionActivity.java @@ -167,6 +167,7 @@ public class SubredditSelectionActivity extends BaseActivity implements Activity mFragment = new SubscribedSubredditsListingFragment(); Bundle bundle = new Bundle(); bundle.putString(SubscribedSubredditsListingFragment.EXTRA_ACCOUNT_NAME, mAccountName); + bundle.putString(SubscribedSubredditsListingFragment.EXTRA_ACCESS_TOKEN, mAccessToken); bundle.putString(SubscribedSubredditsListingFragment.EXTRA_ACCOUNT_PROFILE_IMAGE_URL, mAccountProfileImageUrl); bundle.putBoolean(SubscribedSubredditsListingFragment.EXTRA_IS_SUBREDDIT_SELECTION, true); if (getIntent().hasExtra(EXTRA_EXTRA_CLEAR_SELECTION)) { 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 2d457dc4..e5b2e225 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubscribedThingListingActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SubscribedThingListingActivity.java @@ -387,6 +387,7 @@ public class SubscribedThingListingActivity extends BaseActivity implements Acti Bundle bundle = new Bundle(); bundle.putBoolean(SubscribedSubredditsListingFragment.EXTRA_IS_SUBREDDIT_SELECTION, false); bundle.putString(SubscribedSubredditsListingFragment.EXTRA_ACCOUNT_NAME, mAccountName); + bundle.putString(SubscribedSubredditsListingFragment.EXTRA_ACCESS_TOKEN, mAccessToken); fragment.setArguments(bundle); return fragment; }