Merge "Avoid the scenario where Contexts list filled with null value in ShowAnrDialogs()" am: 99e5c70ff0 am: 7f2cb4c0a5 am: 5f95d3af26 am: db45d16579 am: 71dfb42d20
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1793211 Change-Id: I28bf8de72b4f6bce9210bb29fde2b3d989911c0e
This commit is contained in:
@@ -945,7 +945,7 @@ public class WindowProcessController extends ConfigurationContainer<Configuratio
|
||||
final int displayId = r.getDisplayId();
|
||||
final Context c = root.getDisplayUiContext(displayId);
|
||||
|
||||
if (r.mVisibleRequested && !displayContexts.contains(c)) {
|
||||
if (c != null && r.mVisibleRequested && !displayContexts.contains(c)) {
|
||||
displayContexts.add(c);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user