diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-05-14 02:41:59 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-05-14 02:41:59 +0000 |
commit | 07710908ba44f3ada4d95c1fffd3cb708029a633 (patch) | |
tree | 356f14b19bb0820e269a7f76bfc491c0ff8a3996 /app/src/main/java/ml/docilealligator/infinityforreddit | |
parent | 2204b72484f9b143ff28e249f2eac3cc900ed3d0 (diff) | |
download | infinity-for-reddit-07710908ba44f3ada4d95c1fffd3cb708029a633.tar infinity-for-reddit-07710908ba44f3ada4d95c1fffd3cb708029a633.tar.gz infinity-for-reddit-07710908ba44f3ada4d95c1fffd3cb708029a633.tar.bz2 infinity-for-reddit-07710908ba44f3ada4d95c1fffd3cb708029a633.tar.lz infinity-for-reddit-07710908ba44f3ada4d95c1fffd3cb708029a633.tar.xz infinity-for-reddit-07710908ba44f3ada4d95c1fffd3cb708029a633.tar.zst infinity-for-reddit-07710908ba44f3ada4d95c1fffd3cb708029a633.zip |
Fix wrong tab type default value in MainActivity.
Diffstat (limited to 'app/src/main/java/ml/docilealligator/infinityforreddit')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/Activity/MainActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/MainActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/MainActivity.java index 8f773a69..6bc4189a 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/MainActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/MainActivity.java @@ -960,11 +960,11 @@ public class MainActivity extends BaseActivity implements SortTypeSelectionCallb String name = mSharedPreferences.getString(SharedPreferencesUtils.MAIN_PAGE_TAB_1_NAME, ""); return generatePostFragment(postType, name); } else if (position == 1) { - String postType = mSharedPreferences.getString(SharedPreferencesUtils.MAIN_PAGE_TAB_2_POST_TYPE, SharedPreferencesUtils.MAIN_PAGE_TAB_POST_TYPE_HOME); + String postType = mSharedPreferences.getString(SharedPreferencesUtils.MAIN_PAGE_TAB_2_POST_TYPE, SharedPreferencesUtils.MAIN_PAGE_TAB_POST_TYPE_POPULAR); String name = mSharedPreferences.getString(SharedPreferencesUtils.MAIN_PAGE_TAB_2_NAME, ""); return generatePostFragment(postType, name); } else { - String postType = mSharedPreferences.getString(SharedPreferencesUtils.MAIN_PAGE_TAB_3_POST_TYPE, SharedPreferencesUtils.MAIN_PAGE_TAB_POST_TYPE_HOME); + String postType = mSharedPreferences.getString(SharedPreferencesUtils.MAIN_PAGE_TAB_3_POST_TYPE, SharedPreferencesUtils.MAIN_PAGE_TAB_POST_TYPE_ALL); String name = mSharedPreferences.getString(SharedPreferencesUtils.MAIN_PAGE_TAB_3_NAME, ""); return generatePostFragment(postType, name); } |