summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Tiger <tigerhuang@google.com> 2024-08-16 19:21:23 +0800
committer Tiger <tigerhuang@google.com> 2024-08-16 19:21:23 +0800
commit3c3036aedc52e2eae0ce76e683dc11a0a859c0a7 (patch)
treee757a0a3aef06d741833b305ba1825b7138b4912 /api/api.go
parent9ac72828e854860810a8c9ba66b7fec000055d42 (diff)
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. Change-Id: I82b5450ba4044a6ef65e21d3cf65f679d1906a90
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions