リビジョン | e347bacaa2fd90cdca059046de2ddb8c7703a3c7 (tree) |
---|---|
日時 | 2017-06-21 16:49:39 |
作者 | Chih-Wei Huang <cwhuang@linu...> |
コミッター | Chih-Wei Huang |
Fix MoveTaskButton function
The MoveTaskButton can't work in Android 7.1.2. Not sure why.
It worked before.
Set the destinationStack explicitly to fix it.
@@ -102,6 +102,7 @@ public class RecentsTransitionHelper { | ||
102 | 102 | final TaskStackView stackView, final TaskView taskView, |
103 | 103 | final boolean screenPinningRequested, final Rect bounds, final int destinationStack) { |
104 | 104 | final ActivityOptions opts = ActivityOptions.makeBasic(); |
105 | + opts.setLaunchStackId(destinationStack); | |
105 | 106 | if (bounds != null) { |
106 | 107 | opts.setLaunchBounds(bounds.isEmpty() ? null : bounds); |
107 | 108 | } |