From 97dcc263e309d02d051d394e986442fe46ec6253 Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Sat, 13 Aug 2022 13:35:30 +1000 Subject: [PATCH] Fix saved comments not shown when clicking Saved option in the bottom navigation bar. --- .../infinityforreddit/activities/MainActivity.java | 3 +-- .../activities/ViewMultiRedditDetailActivity.java | 3 +-- .../activities/ViewSubredditDetailActivity.java | 3 +-- .../infinityforreddit/activities/ViewUserDetailActivity.java | 3 +-- 4 files changed, 4 insertions(+), 8 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 d4d90784..ebe833a4 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/MainActivity.java @@ -486,8 +486,7 @@ public class MainActivity extends BaseActivity implements SortTypeSelectionCallb break; } case SharedPreferencesUtils.MAIN_ACTIVITY_BOTTOM_APP_BAR_OPTION_SAVED: { - Intent intent = new Intent(this, AccountPostsActivity.class); - intent.putExtra(AccountPostsActivity.EXTRA_USER_WHERE, PostPagingSource.USER_WHERE_SAVED); + Intent intent = new Intent(MainActivity.this, AccountSavedThingActivity.class); startActivity(intent); break; } diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewMultiRedditDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewMultiRedditDetailActivity.java index 9e8d4ed0..31c0a19f 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewMultiRedditDetailActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewMultiRedditDetailActivity.java @@ -504,8 +504,7 @@ public class ViewMultiRedditDetailActivity extends BaseActivity implements SortT break; } case SharedPreferencesUtils.OTHER_ACTIVITIES_BOTTOM_APP_BAR_OPTION_SAVED: { - Intent intent = new Intent(this, AccountPostsActivity.class); - intent.putExtra(AccountPostsActivity.EXTRA_USER_WHERE, PostPagingSource.USER_WHERE_SAVED); + Intent intent = new Intent(ViewMultiRedditDetailActivity.this, AccountSavedThingActivity.class); startActivity(intent); break; } diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java index 48054ceb..af31b76a 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewSubredditDetailActivity.java @@ -682,8 +682,7 @@ public class ViewSubredditDetailActivity extends BaseActivity implements SortTyp break; } case SharedPreferencesUtils.OTHER_ACTIVITIES_BOTTOM_APP_BAR_OPTION_SAVED: { - Intent intent = new Intent(this, AccountPostsActivity.class); - intent.putExtra(AccountPostsActivity.EXTRA_USER_WHERE, PostPagingSource.USER_WHERE_SAVED); + Intent intent = new Intent(ViewSubredditDetailActivity.this, AccountSavedThingActivity.class); startActivity(intent); break; } diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewUserDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewUserDetailActivity.java index 15b55477..7d533cba 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewUserDetailActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewUserDetailActivity.java @@ -995,8 +995,7 @@ public class ViewUserDetailActivity extends BaseActivity implements SortTypeSele break; } case SharedPreferencesUtils.OTHER_ACTIVITIES_BOTTOM_APP_BAR_OPTION_SAVED: { - Intent intent = new Intent(this, AccountPostsActivity.class); - intent.putExtra(AccountPostsActivity.EXTRA_USER_WHERE, PostPagingSource.USER_WHERE_SAVED); + Intent intent = new Intent(ViewUserDetailActivity.this, AccountSavedThingActivity.class); startActivity(intent); break; }