Fix NPE
bug:30150688 Change-Id: I2ae0cb76b2f6f0b47241bccc6922f1034183cc75
This commit is contained in:
@@ -9913,8 +9913,8 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
// We may need to schedule some toast windows to be removed. The
|
// We may need to schedule some toast windows to be removed. The
|
||||||
// toasts for an app that does not have input focus are removed
|
// toasts for an app that does not have input focus are removed
|
||||||
// within a timeout to prevent apps to redress other apps' UI.
|
// within a timeout to prevent apps to redress other apps' UI.
|
||||||
oldFocus.getDisplayContent().scheduleToastWindowsTimeoutIfNeededLocked(
|
getDefaultDisplayContentLocked().scheduleToastWindowsTimeoutIfNeededLocked(
|
||||||
oldFocus, newFocus);
|
oldFocus, newFocus);
|
||||||
|
|
||||||
Trace.traceEnd(Trace.TRACE_TAG_WINDOW_MANAGER);
|
Trace.traceEnd(Trace.TRACE_TAG_WINDOW_MANAGER);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user