diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-04-10 02:32:23 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-04-10 02:32:23 +0000 |
commit | bc27f077d60ba451c121436723d0794ac69e6233 (patch) | |
tree | cd8e9191dd36961141ce133c198b0def0fcd1f3e | |
parent | e5750e35b7945df6172868b153b325689c97e56e (diff) | |
download | infinity-for-reddit-bc27f077d60ba451c121436723d0794ac69e6233.tar infinity-for-reddit-bc27f077d60ba451c121436723d0794ac69e6233.tar.gz infinity-for-reddit-bc27f077d60ba451c121436723d0794ac69e6233.tar.bz2 infinity-for-reddit-bc27f077d60ba451c121436723d0794ac69e6233.tar.lz infinity-for-reddit-bc27f077d60ba451c121436723d0794ac69e6233.tar.xz infinity-for-reddit-bc27f077d60ba451c121436723d0794ac69e6233.tar.zst infinity-for-reddit-bc27f077d60ba451c121436723d0794ac69e6233.zip |
Fix cannot tap to retry in PostFragment. Show correct title in AdvancedPreferenceFragment.
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/SettingsActivity.java | 3 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_post.xml | 26 |
2 files changed, 16 insertions, 13 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SettingsActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SettingsActivity.java index 20e215e7..b4a70c30 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SettingsActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/SettingsActivity.java @@ -27,6 +27,7 @@ import ml.docilealligator.infinityforreddit.R; import ml.docilealligator.infinityforreddit.customtheme.CustomThemeWrapper; import ml.docilealligator.infinityforreddit.events.RecreateActivityEvent; import ml.docilealligator.infinityforreddit.settings.AboutPreferenceFragment; +import ml.docilealligator.infinityforreddit.settings.AdvancedPreferenceFragment; import ml.docilealligator.infinityforreddit.settings.CustomizeBottomAppBarFragment; import ml.docilealligator.infinityforreddit.settings.CustomizeMainPageTabsFragment; import ml.docilealligator.infinityforreddit.settings.FontPreferenceFragment; @@ -107,6 +108,8 @@ public class SettingsActivity extends BaseActivity implements setTitle(R.string.settings_gestures_and_buttons_title); } else if (fragment instanceof PostPreferenceFragment) { setTitle(R.string.settings_category_post_title); + } else if (fragment instanceof AdvancedPreferenceFragment) { + setTitle(R.string.settings_advanced_master_title); } }); } diff --git a/app/src/main/res/layout/fragment_post.xml b/app/src/main/res/layout/fragment_post.xml index 22a662c2..cfd4b958 100644 --- a/app/src/main/res/layout/fragment_post.xml +++ b/app/src/main/res/layout/fragment_post.xml @@ -4,6 +4,19 @@ android:layout_height="match_parent" tools:application="ml.docilealligator.infinityforreddit.fragments.PostFragment"> + <androidx.swiperefreshlayout.widget.SwipeRefreshLayout + android:id="@+id/swipe_refresh_layout_post_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <ml.docilealligator.infinityforreddit.customviews.CustomToroContainer + android:id="@+id/recycler_view_post_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:clipToPadding="false" /> + + </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> + <LinearLayout android:id="@+id/fetch_post_info_linear_layout_post_fragment" android:layout_width="match_parent" @@ -30,17 +43,4 @@ </LinearLayout> - <androidx.swiperefreshlayout.widget.SwipeRefreshLayout - android:id="@+id/swipe_refresh_layout_post_fragment" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <ml.docilealligator.infinityforreddit.customviews.CustomToroContainer - android:id="@+id/recycler_view_post_fragment" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:clipToPadding="false" /> - - </androidx.swiperefreshlayout.widget.SwipeRefreshLayout> - </androidx.coordinatorlayout.widget.CoordinatorLayout> |