summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Selim Cinek <cinek@google.com> 2018-01-23 13:52:35 -0800
committer Selim Cinek <cinek@google.com> 2018-01-23 21:56:12 +0000
commit7b1447e55fb7547b2014d685f7bf30e725438d83 (patch)
tree0e24046cf541557ebcdc0b3a3aaaa1218af8cd96
parenta22b5a2e976932c174d8e1fec31c1fb4fa9ece3c (diff)
Fixed the case where the task was moved to the front
Previously in the case that the task was moved to the front, the wrong result would be returned. Test: go/wm-smoke Test: Use PendingIntent.sendAndReturnResult Change-Id: Ifa2966bacc4235f45b74220336f2baae02d0ee9a
-rw-r--r--services/core/java/com/android/server/am/ActivityStarter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/am/ActivityStarter.java b/services/core/java/com/android/server/am/ActivityStarter.java
index 8595aa394800..4dc30ddf4b5b 100644
--- a/services/core/java/com/android/server/am/ActivityStarter.java
+++ b/services/core/java/com/android/server/am/ActivityStarter.java
@@ -1252,7 +1252,7 @@ class ActivityStarter {
outActivity[0] = reusedActivity;
}
- return START_DELIVERED_TO_TOP;
+ return mMovedToFront ? START_TASK_TO_FRONT : START_DELIVERED_TO_TOP;
}
}