Fix cannot tap to retry in PostFragment. Show correct title in AdvancedPreferenceFragment.

This commit is contained in:
Alex Ning 2021-04-10 10:32:23 +08:00
parent e5750e35b7
commit bc27f077d6
2 changed files with 16 additions and 13 deletions

View File

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

View File

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