Fix bad merge causing Recents to be started twice in succession.

Bug: 38449257
Test: Launch Recents, ensure it's not started twice...
Change-Id: I0da85ef53742981fd67e8f1d1b733060d8098498
This commit is contained in:
Winson Chung
2017-05-19 16:05:54 -07:00
parent a239ed1c79
commit 1d770f946b

View File

@@ -1039,7 +1039,6 @@ public class RecentsImpl implements ActivityOptions.OnAnimationFinishedListener
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
| Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS
| Intent.FLAG_ACTIVITY_TASK_ON_HOME);
Recents.getSystemServices().startActivityAsUserAsync(intent, opts);
HidePipMenuEvent hideMenuEvent = new HidePipMenuEvent();
hideMenuEvent.addPostAnimationCallback(() -> {
Recents.getSystemServices().startActivityAsUserAsync(intent, opts);