Workaround issue with pip overlay not hiding cleanly.

- We were just finishing the activity which was causing issues with the
  wrong app transition being applied.  We actually can just hide the menu
  activity first before finishing it like we do elsewhere.

Bug: 38222481
Test: Open PiP, launch to show assistant

Change-Id: I348f8a17f76006bcef46fe01c87deae0b89f6586
This commit is contained in:
Winson Chung
2017-05-16 15:27:49 -07:00
parent 4bc839e267
commit 9f69b78eb3

View File

@@ -221,9 +221,9 @@ public class PipMenuActivity extends Activity {
protected void onUserLeaveHint() {
super.onUserLeaveHint();
// If another task is starting on top of the menu, then finish it so that it can be
// If another task is starting on top of the menu, then hide and finish it so that it can be
// recreated on the top next time it starts
finish();
hideMenu();
}
@Override