Fix saved comments not shown when clicking Saved option in the bottom navigation bar.

This commit is contained in:
Docile-Alligator 2022-08-13 13:35:30 +10:00
parent da708748ba
commit 97dcc263e3
4 changed files with 4 additions and 8 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}