Skip to content

Commit

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

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

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

Reviewed By: NickGerleman

Differential Revision: D48545516

fbshipit-source-id: ff79ac0d515b9a731c1c4ed861a73ce7998cb7f8
  • Loading branch information
mdvacca authored and facebook-github-bot committed Sep 27, 2023
1 parent 0384e3c commit 6eb4f1e
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 6eb4f1e

Please sign in to comment.