From 5b75818fc5d4069f99f1113721dfc12c00d33218 Mon Sep 17 00:00:00 2001 From: len Date: Wed, 16 Mar 2016 19:52:19 +0100 Subject: [PATCH] Different approach for #214 --- .../java/eu/kanade/tachiyomi/ui/reader/ReaderMenu.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderMenu.java b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderMenu.java index 086016c5d..443f931b2 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderMenu.java +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderMenu.java @@ -1,7 +1,6 @@ package eu.kanade.tachiyomi.ui.reader; import android.app.Dialog; -import android.content.Context; import android.content.res.Configuration; import android.support.v7.widget.Toolbar; import android.view.Gravity; @@ -9,7 +8,6 @@ import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; -import android.view.WindowManager; import android.view.WindowManager.LayoutParams; import android.view.animation.Animation; import android.view.animation.AnimationUtils; @@ -266,14 +264,11 @@ public class ReaderMenu { private void showImmersiveDialog(Dialog dialog) { // Hack to not leave immersive mode - dialog.getWindow().setFlags(LayoutParams.FLAG_NOT_FOCUSABLE, - LayoutParams.FLAG_NOT_FOCUSABLE); + dialog.getWindow().setFlags(LayoutParams.FLAG_NOT_FOCUSABLE, LayoutParams.FLAG_NOT_FOCUSABLE); + dialog.show(); dialog.getWindow().getDecorView().setSystemUiVisibility( activity.getWindow().getDecorView().getSystemUiVisibility()); - dialog.show(); dialog.getWindow().clearFlags(LayoutParams.FLAG_NOT_FOCUSABLE); - WindowManager wm = (WindowManager) activity.getSystemService(Context.WINDOW_SERVICE); - wm.updateViewLayout(activity.getWindow().getDecorView(), activity.getWindow().getAttributes()); } class SettingsPopupWindow extends PopupWindow {