From cfce72991210086ef27c74e31570231639cf75e2 Mon Sep 17 00:00:00 2001 From: Vladimir Kotikov Date: Mon, 23 May 2016 14:42:22 +0300 Subject: [PATCH] CB-11197 Keep status bar hidden when keyboard pops up This closes #59 --- src/android/StatusBar.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/android/StatusBar.java b/src/android/StatusBar.java index 0b7d67c..16bfd90 100644 --- a/src/android/StatusBar.java +++ b/src/android/StatusBar.java @@ -96,9 +96,10 @@ public class StatusBar extends CordovaPlugin { uiOptions &= ~View.SYSTEM_UI_FLAG_FULLSCREEN; window.getDecorView().setSystemUiVisibility(uiOptions); - return; } + // CB-11197 We still need to update LayoutParams to force status bar + // to be hidden when entering e.g. text fields window.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); } }); @@ -117,9 +118,10 @@ public class StatusBar extends CordovaPlugin { | View.SYSTEM_UI_FLAG_FULLSCREEN; window.getDecorView().setSystemUiVisibility(uiOptions); - return; } + // CB-11197 We still need to update LayoutParams to force status bar + // to be hidden when entering e.g. text fields window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); } });