Skip to content

Commit a439469

Browse files
committed
Fix local attribute accessing and indentation
1 parent d47cbf3 commit a439469

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/android/StatusBar.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)