Skip to content

Commit 8db1c39

Browse files
committed
fix: update theme resource used in patch
1 parent abb8b6f commit 8db1c39

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

patches/react-native/react-native+0.79.2+028+fix-modal-transparent-navigation-bar.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ index 139a1c1..f6d1faa 100644
66
// Navigation bar cannot be translucent without status bar being translucent too
77
dialogWindow.setSystemBarsTranslucency(navigationBarTranslucent)
88

9-
+ // If enforceNavigationBarContrast is explicitly set in the modal style (Theme.Theme_FullScreenDialog),
9+
+ // If enforceNavigationBarContrast is explicitly set in the app theme (AppTheme),
1010
+ // we need to override the default behaviour for edge-to-edge mode in WindowUtils.setSystemBarsTranslucency.
1111
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
1212
+ val attrs = intArrayOf(android.R.attr.enforceNavigationBarContrast)
13-
+ val ta = context.obtainStyledAttributes(R.style.Theme_FullScreenDialog, attrs)
13+
+ val ta = context.obtainStyledAttributes(R.style.AppTheme, attrs)
1414
+
1515
+ if (ta.length() == 1) {
1616
+ val enforceNavigationBarContrastStyleValue = ta.getBoolean(0, false)

0 commit comments

Comments
 (0)