cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an-s...@apache.org
Subject cordova-plugin-statusbar git commit: CB-11197 Keep status bar hidden when keyboard pops up
Date Tue, 24 May 2016 07:44:32 GMT
Repository: cordova-plugin-statusbar
Updated Branches:
  refs/heads/master c34e3a02c -> cfce72991


CB-11197 Keep status bar hidden when keyboard pops up

 This closes #59


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/commit/cfce7299
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/tree/cfce7299
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/diff/cfce7299

Branch: refs/heads/master
Commit: cfce72991210086ef27c74e31570231639cf75e2
Parents: c34e3a0
Author: Vladimir Kotikov <kotikov.vladimir@gmail.com>
Authored: Mon May 23 14:42:22 2016 +0300
Committer: Vladimir Kotikov <kotikov.vladimir@gmail.com>
Committed: Tue May 24 10:44:00 2016 +0300

----------------------------------------------------------------------
 src/android/StatusBar.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/blob/cfce7299/src/android/StatusBar.java
----------------------------------------------------------------------
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);
                 }
             });


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message