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

Commit c8139785 authored by Riddle Hsu's avatar Riddle Hsu Committed by Android Build Coastguard Worker
Browse files

Clear size compat config when resizing to large screen

The CompatDisplayInsets could be created when the activity is
on a small screen. If the activity is moved or the display is
resized to large screen, then the compat config should be cleared
to fit container size if universal resizable is enabled.

For example:
 Fold to unfold(large screen): clear size compat info
 Unfold to fold(compact screen): create size compat info

Fix: 407952252
Flag: com.android.window.flags.universal_resizable_by_default
Test: SizeCompatTests#testUniversalResizeableByDefault
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8f81dad65e2ba97b69438c28de0d34d9620404a3)
Merged-In: I4da10de140c8bdf565e97239e9ea3901c293ea3d
Change-Id: I4da10de140c8bdf565e97239e9ea3901c293ea3d
parent d97422fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment