mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2025-10-29 11:35:08 +00:00
Fix immersive interface UI issues in LoginActivity and CustomFontPreferenceFragmentCompat.
This commit is contained in:
parent
613992a6ca
commit
6a2e59e255
@ -114,6 +114,7 @@ public class LoginActivity extends BaseActivity {
|
||||
Insets allInsets = insets.getInsets(
|
||||
WindowInsetsCompat.Type.systemBars()
|
||||
| WindowInsetsCompat.Type.displayCutout()
|
||||
| WindowInsetsCompat.Type.ime()
|
||||
);
|
||||
|
||||
setMargins(binding.toolbarLoginActivity,
|
||||
|
||||
@ -129,7 +129,7 @@ public class CustomThemeWrapper {
|
||||
|
||||
public int getFilledCardViewBackgroundColor() {
|
||||
return getThemeSharedPreferences().getInt(CustomThemeSharedPreferencesUtils.FILLED_CARD_VIEW_BACKGROUND_COLOR,
|
||||
getDefaultColor("#E6F4FF", "#242424", "#000000"));
|
||||
getDefaultColor("#EDF6FD", "#242424", "#000000"));
|
||||
}
|
||||
|
||||
public int getReadPostFilledCardViewBackgroundColor() {
|
||||
|
||||
@ -53,7 +53,7 @@ public abstract class CustomFontPreferenceFragmentCompat extends PreferenceFragm
|
||||
WindowInsetsCompat.Type.systemBars()
|
||||
| WindowInsetsCompat.Type.displayCutout()
|
||||
);
|
||||
recyclerView.setPadding(0, 0, 0, allInsets.bottom);
|
||||
recyclerView.setPadding(allInsets.left, 0, allInsets.right, allInsets.bottom);
|
||||
return WindowInsetsCompat.CONSUMED;
|
||||
}
|
||||
});
|
||||
|
||||
@ -176,7 +176,7 @@ public class NsfwAndSpoilerFragment extends Fragment {
|
||||
.setTitle(getString(R.string.warning))
|
||||
.setView(messageTextView)
|
||||
.setPositiveButton(R.string.agree, (dialogInterface, i) -> dialogInterface.dismiss())
|
||||
.setNegativeButton(R.string.do_not_agree, (dialogInterface, i) -> activity.onBackPressed())
|
||||
.setNegativeButton(R.string.do_not_agree, (dialogInterface, i) -> activity.triggerBackPress())
|
||||
.setCancelable(false)
|
||||
.show();
|
||||
|
||||
|
||||
@ -94,7 +94,7 @@ public class SecurityPreferenceFragment extends CustomFontPreferenceFragmentComp
|
||||
|
||||
@Override
|
||||
public void onAuthenticationError(int errorCode, @NonNull CharSequence errString) {
|
||||
activity.onBackPressed();
|
||||
activity.triggerBackPress();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user