Skip to content

Commit 9ed2df6

Browse files
ieatfoodfacebook-github-bot
authored andcommitted
Fix StatusBar on Android API 30 (#33058)
Summary: In #32975 I implemented the new `insetsController#setSystemBarsAppearance` interface, but I found that on Android 11 (API 30) it doesn't appear to work which I missed in earlier testing. It works correctly on Android 12 and the deprecated `systemUiVisibility` interface still works fine on Android 11, so I'm having Android 11 use the deprecated mechanism. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [Android] [Fixed] - Fix StatusBar on Android API 30 Pull Request resolved: #33058 Test Plan: Tested in `rn-tester` on simulators using Android 9, 10, 11, 12, and on an Android 9 device. Reviewed By: lunaleaps Differential Revision: D34050025 Pulled By: ShikaSD fbshipit-source-id: ad80fae1446aca368b09df810785a1cc38383450
1 parent b467094 commit 9ed2df6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReactAndroid/src/main/java/com/facebook/react/modules/statusbar/StatusBarModule.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public void setStyle(@Nullable final String style) {
190190
@TargetApi(Build.VERSION_CODES.R)
191191
@Override
192192
public void run() {
193-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
193+
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.R) {
194194
WindowInsetsController insetsController = activity.getWindow().getInsetsController();
195195
if ("dark-content".equals(style)) {
196196
// dark-content means dark icons on a light status bar

0 commit comments

Comments
 (0)