Skip to content

Commit f9ef042

Browse files
LatroposAleksandra Cynk
andauthored
[Fix][Android] useAnimatedKeyboard hook breaks translucent status bar (software-mansion#4390)
<!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please follow the template so that the reviewers can easily understand what the code changes affect. --> ## Summary FIX [Android] useAnimatedKeyboard hook breaks translucent status bar software-mansion#4277 Fixes software-mansion#4277 <!-- Explain the motivation for this PR. Include "Fixes #<number>" if applicable. --> ## Test plan Tested on both Paper & Fabric Co-authored-by: Aleksandra Cynk <aleksandracynk@swmansion.com>
1 parent 690b887 commit f9ef042

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

android/src/main/java/com/swmansion/reanimated/keyboardObserver/ReanimatedKeyboardEventListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public int subscribeForKeyboardEvents(
145145

146146
private void bringBackWindowInsets() {
147147
WindowCompat.setDecorFitsSystemWindows(
148-
reactContext.get().getCurrentActivity().getWindow(), true);
148+
reactContext.get().getCurrentActivity().getWindow(), !isStatusBarTranslucent);
149149
ViewCompat.setOnApplyWindowInsetsListener(getRootView(), null);
150150
ViewCompat.setWindowInsetsAnimationCallback(getRootView(), null);
151151
View content =

0 commit comments

Comments
 (0)