Merge "Added display null check to ActivityStackSupervisor.getNextFocusableStackLocked" into pi-dev
am: 473b8b09b0
Change-Id: I7fb50faab7f5eeb760eb698f95ccb03ea95bb38f
This commit is contained in:
@@ -2554,6 +2554,10 @@ public class ActivityStackSupervisor extends ConfigurationContainer implements D
|
|||||||
final int displayId = mTmpOrderedDisplayIds.get(i);
|
final int displayId = mTmpOrderedDisplayIds.get(i);
|
||||||
// If a display is registered in WM, it must also be available in AM.
|
// If a display is registered in WM, it must also be available in AM.
|
||||||
final ActivityDisplay display = getActivityDisplayOrCreateLocked(displayId);
|
final ActivityDisplay display = getActivityDisplayOrCreateLocked(displayId);
|
||||||
|
if (display == null) {
|
||||||
|
// Looks like the display no longer exists in the system...
|
||||||
|
continue;
|
||||||
|
}
|
||||||
for (int j = display.getChildCount() - 1; j >= 0; --j) {
|
for (int j = display.getChildCount() - 1; j >= 0; --j) {
|
||||||
final ActivityStack stack = display.getChildAt(j);
|
final ActivityStack stack = display.getChildAt(j);
|
||||||
if (ignoreCurrent && stack == currentFocus) {
|
if (ignoreCurrent && stack == currentFocus) {
|
||||||
|
|||||||
Reference in New Issue
Block a user