Merge commit '9ad091ab1065e85222da0927bb33913530f56f65' into eclair-mr2-plus-aosp * commit '9ad091ab1065e85222da0927bb33913530f56f65': Finish fixing issue #2228381: android.view.InflateException...
This commit is contained in:
@@ -3541,24 +3541,35 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
wtoken.inPendingTransaction = true;
|
wtoken.inPendingTransaction = true;
|
||||||
if (visible) {
|
if (visible) {
|
||||||
mOpeningApps.add(wtoken);
|
mOpeningApps.add(wtoken);
|
||||||
wtoken.allDrawn = false;
|
|
||||||
wtoken.startingDisplayed = false;
|
wtoken.startingDisplayed = false;
|
||||||
wtoken.startingMoved = false;
|
wtoken.startingMoved = false;
|
||||||
wtoken.waitingToShow = true;
|
|
||||||
|
// If the token is currently hidden (should be the
|
||||||
if (wtoken.clientHidden) {
|
// common case), then we need to set up to wait for
|
||||||
// In the case where we are making an app visible
|
// its windows to be ready.
|
||||||
// but holding off for a transition, we still need
|
if (wtoken.hidden) {
|
||||||
// to tell the client to make its windows visible so
|
wtoken.allDrawn = false;
|
||||||
// they get drawn. Otherwise, we will wait on
|
wtoken.waitingToShow = true;
|
||||||
// performing the transition until all windows have
|
|
||||||
// been drawn, they never will be, and we are sad.
|
if (wtoken.clientHidden) {
|
||||||
wtoken.clientHidden = false;
|
// In the case where we are making an app visible
|
||||||
wtoken.sendAppVisibilityToClients();
|
// but holding off for a transition, we still need
|
||||||
|
// to tell the client to make its windows visible so
|
||||||
|
// they get drawn. Otherwise, we will wait on
|
||||||
|
// performing the transition until all windows have
|
||||||
|
// been drawn, they never will be, and we are sad.
|
||||||
|
wtoken.clientHidden = false;
|
||||||
|
wtoken.sendAppVisibilityToClients();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
mClosingApps.add(wtoken);
|
mClosingApps.add(wtoken);
|
||||||
wtoken.waitingToHide = true;
|
|
||||||
|
// If the token is currently visible (should be the
|
||||||
|
// common case), then set up to wait for it to be hidden.
|
||||||
|
if (!wtoken.hidden) {
|
||||||
|
wtoken.waitingToHide = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user