From 200adfbea8103c3c7f5157f6a849b6262b3af88c Mon Sep 17 00:00:00 2001 From: Svetoslav Ganov Date: Tue, 18 Oct 2016 13:29:27 -0700 Subject: [PATCH] Catch a missed case when adding a toast We allow a single toast window per UID. It is possible that the UID had another toast window that is going away and this CL adds a catch all check as there was a case missing. Change-Id: I4c68e7212a05ce349e6e5b1cffe6e36d429aaca0 --- services/core/java/com/android/server/wm/DisplayContent.java | 3 +-- services/core/java/com/android/server/wm/WindowState.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/services/core/java/com/android/server/wm/DisplayContent.java b/services/core/java/com/android/server/wm/DisplayContent.java index ec4cdf2b0f3d4..0a5a225161aa2 100644 --- a/services/core/java/com/android/server/wm/DisplayContent.java +++ b/services/core/java/com/android/server/wm/DisplayContent.java @@ -1121,8 +1121,7 @@ class DisplayContent extends WindowContainer implements WindowManagerP * or some other higher level component said so (e.g. activity manager). * TODO: We should either have different booleans for the removal reason or use a bit-field. */ - private boolean mWindowRemovalAllowed; + boolean mWindowRemovalAllowed; /** * Temp for keeping track of windows that have been removed when