Closes PiP menu on device lock

Bug: 141322738
Test: Expand PiP then device lock and unlock
Change-Id: I0ffd3265e779946bc4e87dd0558ea139eb680bb3
This commit is contained in:
Hongwei Wang
2019-09-26 10:42:38 -07:00
parent a904e8d208
commit 9cdf45224d

View File

@@ -247,6 +247,9 @@ public class PipMenuActivity extends Activity {
protected void onStop() {
super.onStop();
// In cases such as device lock, hide and finish it so that it can be recreated on the top
// next time it starts, see also {@link #onUserLeaveHint}
hideMenu();
cancelDelayedFinish();
}