diff options
| author | 2017-07-19 10:17:37 +0000 | |
|---|---|---|
| committer | 2017-07-19 10:17:37 +0000 | |
| commit | ffc3f50b021f10fa9ecb58dade18ad4534c0b90b (patch) | |
| tree | 54e74e62442404715053272577aa0ff6d61fe8ec | |
| parent | 73f94e789664a7cf8d7f48643146277f280220ba (diff) | |
| parent | a338219a269f4f9a5fd648bf8113e1180ff4083a (diff) | |
Merge "Fix threading issue with splash screens" into oc-dr1-dev
| -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); } } |