Merge "Avoid the scenario where Contexts list filled with null value in ShowAnrDialogs()"
This commit is contained in:
@@ -908,7 +908,7 @@ public class WindowProcessController extends ConfigurationContainer<Configuratio
|
|||||||
final int displayId = r.getDisplayId();
|
final int displayId = r.getDisplayId();
|
||||||
final Context c = root.getDisplayUiContext(displayId);
|
final Context c = root.getDisplayUiContext(displayId);
|
||||||
|
|
||||||
if (r.mVisibleRequested && !displayContexts.contains(c)) {
|
if (c != null && r.mVisibleRequested && !displayContexts.contains(c)) {
|
||||||
displayContexts.add(c);
|
displayContexts.add(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user