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

Skip to content
Commit 6f304be5 authored by Tiger's avatar Tiger Committed by Android Build Coastguard Worker
Browse files

Restore decorFitsSystemWindows from preserved window

When activity is relaunching, the framework might reuse the DecorView
but create a new instance of PhoneWindow.

So PhoneWindow#mDecorFitsSystemWindows will be reset. And then
applyDecorFitsSystemWindows will be executed before
mDecorFitsSystemWindows is re-assigned. The window won't be attached
again, so correct value won't be applied again.

This CL restores decorFitsSystemWindows from the preserved window before
applying it.

Fix: 354130297
Bug: 309578419
Flag: com.android.window.flags.enforce_edge_to_edge
Test: Open a location in Weather which has a different theme from the
      main page. See if status bar is black.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3c3036aedc52e2eae0ce76e683dc11a0a859c0a7)
Merged-In: I82b5450ba4044a6ef65e21d3cf65f679d1906a90
Change-Id: I82b5450ba4044a6ef65e21d3cf65f679d1906a90
parent fdb0ec1d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment