fix: leaving settings always unlocks drawer
This commit is contained in:
@@ -325,7 +325,7 @@ public class MainActivity extends BaseActivity {
|
||||
drawerLayout.setDrawerLockMode(mode);
|
||||
}
|
||||
|
||||
private void toggleNavigationDrawerLockOnOrientationChange() {
|
||||
public void toggleNavigationDrawerLockOnOrientationChange() {
|
||||
// Ignore orientation check, drawer always unlocked
|
||||
if (Preferences.getEnableDrawerOnPortrait()) {
|
||||
setNavigationDrawerLock(false);
|
||||
|
||||
@@ -169,7 +169,7 @@ public class SettingsFragment extends PreferenceFragmentCompat {
|
||||
public void onStop() {
|
||||
super.onStop();
|
||||
activity.setBottomSheetVisibility(true);
|
||||
activity.setNavigationDrawerLock(false);
|
||||
activity.toggleNavigationDrawerLockOnOrientationChange();
|
||||
activity.setSystemBarsVisibility(!activity.isLandscape);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user