Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9bb49fe2 authored by John Reck's avatar John Reck Committed by Android Git Automerger
Browse files

am 4f6fa843: am 4dd90969: am 2994cc57: am e5831979: Missing null check

* commit '4f6fa8433493221fc55a25aa9e958f4b188fe5a5':
  Missing null check
parents 6e48508b 40c82476
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -434,11 +434,12 @@ public final class WindowManagerGlobal {
        boolean hasVisibleWindows = false;
        synchronized (mLock) {
            for (int i = mRoots.size() - 1; i >= 0; --i) {
                if (mRoots.get(i).getHostVisibility() == View.VISIBLE
                        && mRoots.get(i).mAttachInfo.mHardwareRenderer != null) {
                final ViewRootImpl root = mRoots.get(i);
                if (root.mView != null && root.getHostVisibility() == View.VISIBLE
                        && root.mAttachInfo.mHardwareRenderer != null) {
                    hasVisibleWindows = true;
                } else {
                    mRoots.get(i).destroyHardwareResources();
                    root.destroyHardwareResources();
                }
            }
        }