@@ -101,7 +101,7 @@ public void run() {
101101 // use KitKat here to be aligned with "Fullscreen" preference
102102 if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .KITKAT ) {
103103 int uiOptions = window .getDecorView ().getSystemUiVisibility ();
104- if (transparent ) {
104+ if (this . transparent ) {
105105 uiOptions |= View .SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN ;
106106 } else {
107107 uiOptions &= ~View .SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN ;
@@ -237,21 +237,21 @@ private void setStatusBarBackgroundColor(final String colorPref) {
237237
238238 private void setStatusBarTransparent (final boolean transparent ) {
239239 this .transparent = transparent ;
240- final Window window = cordova .getActivity ().getWindow ();
241- if (transparent ) {
242- window .getDecorView ().setSystemUiVisibility (
243- View .SYSTEM_UI_FLAG_LAYOUT_STABLE
244- | View .SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN );
245-
246- if (Build .VERSION .SDK_INT >= 21 ) {
247- window .setStatusBarColor (Color .TRANSPARENT );
248- }
249- }
250- else {
251- window .getDecorView ().setSystemUiVisibility (
252- View .SYSTEM_UI_FLAG_LAYOUT_STABLE
253- | View .SYSTEM_UI_FLAG_VISIBLE );
240+ final Window window = cordova .getActivity ().getWindow ();
241+ if (transparent ) {
242+ window .getDecorView ().setSystemUiVisibility (
243+ View .SYSTEM_UI_FLAG_LAYOUT_STABLE
244+ | View .SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN );
245+
246+ if (Build .VERSION .SDK_INT >= 21 ) {
247+ window .setStatusBarColor (Color .TRANSPARENT );
254248 }
249+ }
250+ else {
251+ window .getDecorView ().setSystemUiVisibility (
252+ View .SYSTEM_UI_FLAG_LAYOUT_STABLE
253+ | View .SYSTEM_UI_FLAG_VISIBLE );
254+ }
255255 }
256256
257257 private void setStatusBarStyle (final String style ) {
0 commit comments