Merge "Added checks while unfreezing bounds" into nyc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b59b5a679a
@@ -626,6 +626,9 @@ class AppWindowToken extends WindowToken {
|
||||
}
|
||||
|
||||
void clearRelaunching() {
|
||||
if (mPendingRelaunchCount == 0) {
|
||||
return;
|
||||
}
|
||||
if (canFreezeBounds()) {
|
||||
unfreezeBounds();
|
||||
}
|
||||
@@ -711,8 +714,12 @@ class AppWindowToken extends WindowToken {
|
||||
* Unfreezes the previously frozen bounds. See {@link #freezeBounds}.
|
||||
*/
|
||||
private void unfreezeBounds() {
|
||||
mFrozenBounds.remove();
|
||||
mFrozenMergedConfig.remove();
|
||||
if (!mFrozenBounds.isEmpty()) {
|
||||
mFrozenBounds.remove();
|
||||
}
|
||||
if (!mFrozenMergedConfig.isEmpty()) {
|
||||
mFrozenMergedConfig.remove();
|
||||
}
|
||||
for (int i = windows.size() - 1; i >= 0; i--) {
|
||||
final WindowState win = windows.get(i);
|
||||
if (!win.mHasSurface) {
|
||||
|
||||
Reference in New Issue
Block a user