Merge pull request #5216 from nextcloud/fix/lock-drawer-in-medias-activities

Locked and hid the drawer in Pictures Preview
This commit is contained in:
Andy Scherzinger 2020-01-20 11:02:28 +01:00 committed by GitHub
commit 465b209ec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 11 deletions

View File

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