mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 05:35:39 +03:00
Locked and hid the drawer in Pictures Preview
This commit is contained in:
parent
5d15aa4add
commit
113575b7bf
1 changed files with 1 additions and 11 deletions
|
@ -119,17 +119,7 @@ public class PreviewImageActivity extends FileActivity implements
|
|||
|
||||
mFullScreenAnchorView = getWindow().getDecorView();
|
||||
// to keep our UI controls visibility in line with system bars visibility
|
||||
mFullScreenAnchorView.setOnSystemUiVisibilityChangeListener
|
||||
(flags -> {
|
||||
boolean visible = (flags & View.SYSTEM_UI_FLAG_HIDE_NAVIGATION) == 0;
|
||||
if (visible) {
|
||||
actionBar.show();
|
||||
setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED);
|
||||
} else {
|
||||
actionBar.hide();
|
||||
setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
|
||||
}
|
||||
});
|
||||
setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED);
|
||||
|
||||
if (savedInstanceState != null) {
|
||||
mRequestWaitingForBinder = savedInstanceState.getBoolean(KEY_WAITING_FOR_BINDER);
|
||||
|
|
Loading…
Reference in a new issue