Skip to content

Commit fa5bc08

Browse files
Craig MautnerAndroid (Google) Code Review
authored andcommitted
Merge "Increase window freeze timeout for bigger screens." into jb-mr1-dev
2 parents ccf9ef6 + 7dfcb01 commit fa5bc08

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

services/java/com/android/server/wm/WindowManagerService.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ public class WindowManagerService extends IWindowManager.Stub
264264
*/
265265
static final int DEFAULT_FADE_IN_OUT_DURATION = 400;
266266

267+
/** Amount of time (in milliseconds) to delay before declaring a window freeze timeout. */
268+
static final int WINDOW_FREEZE_TIMEOUT_DURATION = 3000;
269+
267270
/**
268271
* If true, the window manager will do its own custom freezing and general
269272
* management of the screen during rotation.
@@ -6018,7 +6021,8 @@ public boolean updateRotationUncheckedLocked(boolean inTransaction) {
60186021

60196022
mWindowsFreezingScreen = true;
60206023
mH.removeMessages(H.WINDOW_FREEZE_TIMEOUT);
6021-
mH.sendMessageDelayed(mH.obtainMessage(H.WINDOW_FREEZE_TIMEOUT), 2000);
6024+
mH.sendMessageDelayed(mH.obtainMessage(H.WINDOW_FREEZE_TIMEOUT),
6025+
WINDOW_FREEZE_TIMEOUT_DURATION);
60226026
mWaitingForConfig = true;
60236027
getDefaultDisplayContentLocked().layoutNeeded = true;
60246028
startFreezingDisplayLocked(inTransaction, 0, 0);
@@ -8380,7 +8384,7 @@ void makeWindowFreezingScreenIfNeededLocked(WindowState w) {
83808384
// when we first froze the display.
83818385
mH.removeMessages(H.WINDOW_FREEZE_TIMEOUT);
83828386
mH.sendMessageDelayed(mH.obtainMessage(
8383-
H.WINDOW_FREEZE_TIMEOUT), 2000);
8387+
H.WINDOW_FREEZE_TIMEOUT), WINDOW_FREEZE_TIMEOUT_DURATION);
83848388
}
83858389
}
83868390
}

0 commit comments

Comments
 (0)