Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a53f14d1 authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Fix wrong insets in phone mode with FLAG_HIDE_NAVBAR_WINDOW on

Can't reuse the same insets object for both providedInsets and paramsForRotation. They can override each other.

Bug: 274517647
Test: turn on FLAG_HIDE_NAVBAR_WINDOW and ENABLE_TASKBAR_NO_RECREATION. Make sure the insets are correct
Change-Id: I8a4ab93e17bf5f4c7949678b087261344cccb1f9
parent ca9b8841
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ class TaskbarInsetsController(val context: TaskbarActivityContext) : LoggableTas
        if (!context.isGestureNav) {
            if (windowLayoutParams.paramsForRotation != null) {
                for (layoutParams in windowLayoutParams.paramsForRotation) {
                    layoutParams.providedInsets = windowLayoutParams.providedInsets
                    layoutParams.providedInsets = getProvidedInsets(insetsRoundedCornerFlag)
                }
            }
        }