Loading core/java/android/view/WindowManagerGlobal.java +8 −1 Original line number Diff line number Diff line Loading @@ -597,7 +597,7 @@ public final class WindowManagerGlobal { } void doRemoveView(ViewRootImpl root) { boolean allViewsRemoved; final boolean allViewsRemoved; synchronized (mLock) { final int index = mRoots.indexOf(root); if (index >= 0) { Loading @@ -608,6 +608,13 @@ public final class WindowManagerGlobal { } allViewsRemoved = mRoots.isEmpty(); mWindowViewsListenerGroup.accept(getWindowViews()); // If we don't have any views anymore in our process, stop watching // for system property changes. if (allViewsRemoved && mSystemPropertyUpdater != null) { SystemProperties.removeChangeCallback(mSystemPropertyUpdater); mSystemPropertyUpdater = null; } } // If we don't have any views anymore in our process, we no longer need the Loading Loading
core/java/android/view/WindowManagerGlobal.java +8 −1 Original line number Diff line number Diff line Loading @@ -597,7 +597,7 @@ public final class WindowManagerGlobal { } void doRemoveView(ViewRootImpl root) { boolean allViewsRemoved; final boolean allViewsRemoved; synchronized (mLock) { final int index = mRoots.indexOf(root); if (index >= 0) { Loading @@ -608,6 +608,13 @@ public final class WindowManagerGlobal { } allViewsRemoved = mRoots.isEmpty(); mWindowViewsListenerGroup.accept(getWindowViews()); // If we don't have any views anymore in our process, stop watching // for system property changes. if (allViewsRemoved && mSystemPropertyUpdater != null) { SystemProperties.removeChangeCallback(mSystemPropertyUpdater); mSystemPropertyUpdater = null; } } // If we don't have any views anymore in our process, we no longer need the Loading