commit | eae451e57dc439644e0b2db9e5d3714a98d9969f | [log] [tgz] |
---|---|---|
author | Wale Ogunwale <ogunwale@google.com> | Tue Aug 04 15:20:50 2015 -0700 |
committer | Wale Ogunwale <ogunwale@google.com> | Tue Aug 04 15:26:58 2015 -0700 |
tree | 3fe439e481d5a668b161db189407c1fd10addfe6 | |
parent | f9efa73748f44292f60502bde731b4ecf5f53c16 [diff] [blame] |
Move task focusing activity task to the front when we focus on the stack Fixes issue where we don't correctly set the current focus window since the task isn't on top. Change-Id: Ib541f2a8289571c716c182264f8ec4fccdae30a3
diff --git a/services/core/java/com/android/server/am/ActivityStackSupervisor.java b/services/core/java/com/android/server/am/ActivityStackSupervisor.java index c22bff3..76bac91 100644 --- a/services/core/java/com/android/server/am/ActivityStackSupervisor.java +++ b/services/core/java/com/android/server/am/ActivityStackSupervisor.java
@@ -1822,7 +1822,7 @@ Slog.w(TAG, "Can't set focus stack for r=" + r + " task=" + task); return false; } - task.stack.moveToFront(reason); + task.stack.moveToFront(reason, task); return true; }