Merge commit '9bc0a572d8459e0b6209e8a68cb680389c1f8b73' into froyo-plus-aosp * commit '9bc0a572d8459e0b6209e8a68cb680389c1f8b73': Fix issue #2608292: Fails to launch the video camera preview
This commit is contained in:
@@ -7580,15 +7580,17 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
while (i > 0) {
|
while (i > 0) {
|
||||||
i--;
|
i--;
|
||||||
WindowState c = (WindowState)mChildWindows.get(i);
|
WindowState c = (WindowState)mChildWindows.get(i);
|
||||||
if (c.mSurface != null && c.mAttachedHidden) {
|
if (c.mAttachedHidden) {
|
||||||
c.mAttachedHidden = false;
|
c.mAttachedHidden = false;
|
||||||
c.performShowLocked();
|
if (c.mSurface != null) {
|
||||||
// It hadn't been shown, which means layout not
|
c.performShowLocked();
|
||||||
// performed on it, so now we want to make sure to
|
// It hadn't been shown, which means layout not
|
||||||
// do a layout. If called from within the transaction
|
// performed on it, so now we want to make sure to
|
||||||
// loop, this will cause it to restart with a new
|
// do a layout. If called from within the transaction
|
||||||
// layout.
|
// loop, this will cause it to restart with a new
|
||||||
mLayoutNeeded = true;
|
// layout.
|
||||||
|
mLayoutNeeded = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user