OSDN Git Service

Fix MoveTaskButton function
authorChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 21 Jun 2017 07:49:39 +0000 (15:49 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 21 Jun 2017 07:49:39 +0000 (15:49 +0800)
The MoveTaskButton can't work in Android 7.1.2. Not sure why.
It worked before.

Set the destinationStack explicitly to fix it.

packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java

index e503c56..077ca4c 100644 (file)
@@ -102,6 +102,7 @@ public class RecentsTransitionHelper {
             final TaskStackView stackView, final TaskView taskView,
             final boolean screenPinningRequested, final Rect bounds, final int destinationStack) {
         final ActivityOptions opts = ActivityOptions.makeBasic();
+        opts.setLaunchStackId(destinationStack);
         if (bounds != null) {
             opts.setLaunchBounds(bounds.isEmpty() ? null : bounds);
         }