From 59e512a64df2a596448675d740d9986fd7275c76 Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Tue, 3 Nov 2015 22:19:28 +0100 Subject: [PATCH] fixed notification hiding issue --- app/src/main/java/org/schabi/newpipe/PlayVideoActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/PlayVideoActivity.java b/app/src/main/java/org/schabi/newpipe/PlayVideoActivity.java index d05f721a2..81a8aec33 100644 --- a/app/src/main/java/org/schabi/newpipe/PlayVideoActivity.java +++ b/app/src/main/java/org/schabi/newpipe/PlayVideoActivity.java @@ -253,9 +253,10 @@ public class PlayVideoActivity extends AppCompatActivity { | View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_STABLE); + } else { + getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, + WindowManager.LayoutParams.FLAG_FULLSCREEN); } - getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, - WindowManager.LayoutParams.FLAG_FULLSCREEN); } private void adjustMediaControlMetrics() {