diff options
| author | 2017-07-19 10:25:27 +0000 | |
|---|---|---|
| committer | 2017-07-19 10:25:27 +0000 | |
| commit | 6b4ef0049f89a0f794fb19f9a34a3f9e24b9b3fd (patch) | |
| tree | d94f2345c155899efff308f66ce73f484526f996 | |
| parent | ea0e2bd457bdf8c211a1495520a67a94cfaabc02 (diff) | |
| parent | ffc3f50b021f10fa9ecb58dade18ad4534c0b90b (diff) | |
Merge "Fix threading issue with splash screens" into oc-dr1-dev
am: ffc3f50b02
Change-Id: I20e456309ddae5f1a75b309726807295c414a6d3
| -rw-r--r-- | services/core/java/com/android/server/wm/AppWindowContainerController.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/AppWindowContainerController.java b/services/core/java/com/android/server/wm/AppWindowContainerController.java index 86e130d723d8..a6ffe83c366e 100644 --- a/services/core/java/com/android/server/wm/AppWindowContainerController.java +++ b/services/core/java/com/android/server/wm/AppWindowContainerController.java @@ -685,7 +685,10 @@ public class AppWindowContainerController if (DEBUG_STARTING_WINDOW) Slog.v(TAG_WM, "Schedule remove starting " + mContainer + " startingWindow=" + mContainer.startingWindow); - mHandler.post(mRemoveStartingWindow); + + // Use the same thread to remove the window as we used to add it, as otherwise we end up + // with things in the view hierarchy being called from different threads. + mService.mAnimationHandler.post(mRemoveStartingWindow); } } |