Skip to content

Commit

Permalink
Remove support for Android API < 23 in StatusBarModule (facebook#39669)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#39669

Since minsdk version was increased to 23, we are deleting code using Android APIs < 23 for class StatusBarModule

chnagelog: [Android][Breaking] Remove support for Android API < 23 in StatusBarModule

Reviewed By: NickGerleman

Differential Revision: D48545516

fbshipit-source-id: d057a89e896ba96f3b2ab5e3ffbd4cbb25cc96f7
  • Loading branch information
mdvacca committed Sep 26, 2023
1 parent 70f1130 commit 9f33c13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public void run() {
insetsController.setSystemBarsAppearance(
0, WindowInsetsController.APPEARANCE_LIGHT_STATUS_BARS);
}
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
} else {
View decorView = activity.getWindow().getDecorView();
int systemUiVisibilityFlags = decorView.getSystemUiVisibility();
if ("dark-content".equals(style)) {
Expand Down

0 comments on commit 9f33c13

Please sign in to comment.