Fix the wallpaper app cannot display into full screen when

in one-handed mode

To set appBounds when OHM sets bounds.

Bug: 177498128

Test: manual
Change-Id: I8ea6a223a4bb7df07e053cecabfeb28d80908d9d
This commit is contained in:
Jason Chang
2021-02-03 11:07:57 +08:00
parent 081a843f37
commit 56e5b0306e

View File

@@ -203,6 +203,7 @@ public class OneHandedDisplayAreaOrganizer extends DisplayAreaOrganizer {
animateWindows(token, leash, fromBounds, toBounds, direction,
mEnterExitAnimationDurationMs);
wct.setBounds(token, toBounds);
wct.setAppBounds(token, toBounds);
});
applyTransaction(wct);
}
@@ -232,6 +233,7 @@ public class OneHandedDisplayAreaOrganizer extends DisplayAreaOrganizer {
// DisplayRotationController will applyTransaction() after finish rotating
if (wct != null) {
wct.setBounds(token, null/* reset */);
wct.setAppBounds(token, null/* reset */);
}
});
tx.apply();