Skip to content

Commit

Permalink
fix WindowProxy
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Jan 15, 2025
1 parent ac5a629 commit 60c5047
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,14 +332,7 @@ public void windowCreated(TiBaseActivity activity, Bundle savedInstanceState)
win.setStatusBarColor(colorInt);
}

if (hasProperty(TiC.PROPERTY_WINDOW_FLAGS)) {
if ((TiConvert.toInt(getProperty(TiC.PROPERTY_WINDOW_FLAGS)) & STATUS_BAR_LIGHT) != 0
&& Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
win.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
}
}

if (hasProperty(TiC.PROPERTY_UI_FLAGS)) {
if (hasProperty(TiC.PROPERTY_UI_FLAGS)) {
win.getDecorView().setSystemUiVisibility(TiConvert.toInt(getProperty(TiC.PROPERTY_UI_FLAGS)));
}

Expand Down

0 comments on commit 60c5047

Please sign in to comment.