OSDN Git Service

Fix bad merge causing Recents to be started twice in succession.
authorWinson Chung <winsonc@google.com>
Fri, 19 May 2017 23:05:54 +0000 (16:05 -0700)
committerWinson Chung <winsonc@google.com>
Fri, 19 May 2017 23:05:58 +0000 (16:05 -0700)
Bug: 38449257
Test: Launch Recents, ensure it's not started twice...
Change-Id: I0da85ef53742981fd67e8f1d1b733060d8098498

packages/SystemUI/src/com/android/systemui/recents/RecentsImpl.java

index e229c90..d5aab99 100644 (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);