Set FLAG_RESUMED = false when expanding PiP

This allows us to play the icon alignment animation immediately, rather
than waiting for the expand to finish and launcher to be paused.

Test: Open Maps in PiP on home screen, expand it and watch taskbar
Fixes: 239506421
Change-Id: I5c04f778c4c39c2895db0a1ea1fca4d48d1f3093
This commit is contained in:
Tony Wickham
2022-07-27 08:06:42 -07:00
parent 592d80dc29
commit f3636d09e7

View File

@@ -353,6 +353,13 @@ public class LauncherTaskbarUIController extends TaskbarUIController {
.get();
}
@Override
public void onExpandPip() {
super.onExpandPip();
mTaskbarLauncherStateController.updateStateForFlag(FLAG_RESUMED, false);
mTaskbarLauncherStateController.applyState();
}
@Override
public void dumpLogs(String prefix, PrintWriter pw) {
super.dumpLogs(prefix, pw);