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

Commit f09c1a24 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix issue #2608292: Fails to launch the video camera preview

Need to clear the attached hidden flag on the window, even if it does
not yet have an actual surface.

Change-Id: I0a90f6b03cd8e347a3eae4d6bea3ab93f7128bf4
parent 05fa2144
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -7580,8 +7580,9 @@ public class WindowManagerService extends IWindowManager.Stub
                while (i > 0) {
                    i--;
                    WindowState c = (WindowState)mChildWindows.get(i);
                    if (c.mSurface != null && c.mAttachedHidden) {
                    if (c.mAttachedHidden) {
                        c.mAttachedHidden = false;
                        if (c.mSurface != null) {
                            c.performShowLocked();
                            // It hadn't been shown, which means layout not
                            // performed on it, so now we want to make sure to
@@ -7591,6 +7592,7 @@ public class WindowManagerService extends IWindowManager.Stub
                            mLayoutNeeded = true;
                        }
                    }
                }

                if (mAttrs.type != TYPE_APPLICATION_STARTING
                        && mAppToken != null) {