Skip to content
Commit 437319e1 authored by Mariia Sandrikova's avatar Mariia Sandrikova
Browse files

Don't clear size compat mode on fold/unfold.

With ag/14036667, the displays are turned off during fold and unfold transitions. While screen is off, ActivityRecord#mVisibleRequested is set to false and mCompatDisplatInsets is cleared in onConfigurationChanged > restartProcessIfVisible > clearSizeCompatMode. As a result, unresizable activities don't enter size compat mode after fold/unfold as they should. To address this checking that visibleIgnoringKeyguard is set to false before clearing mCompatDisplayInsets.

Fix: 187338605
Test: atest SizeCompatMode
Change-Id: I75ea5bba106d04c849e6b7ab446f77fcd8928981
parent d8ee5fbd
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