am 2b02564b: am fa5bc081: Merge "Increase window freeze timeout for bigger screens." into jb-mr1-dev
* commit '2b02564bfd8db8a584e6c98d24416a16bcc5e20d': Increase window freeze timeout for bigger screens.
This commit is contained in:
@@ -264,6 +264,9 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
*/
|
*/
|
||||||
static final int DEFAULT_FADE_IN_OUT_DURATION = 400;
|
static final int DEFAULT_FADE_IN_OUT_DURATION = 400;
|
||||||
|
|
||||||
|
/** Amount of time (in milliseconds) to delay before declaring a window freeze timeout. */
|
||||||
|
static final int WINDOW_FREEZE_TIMEOUT_DURATION = 3000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If true, the window manager will do its own custom freezing and general
|
* If true, the window manager will do its own custom freezing and general
|
||||||
* management of the screen during rotation.
|
* management of the screen during rotation.
|
||||||
@@ -6018,7 +6021,8 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
|
|
||||||
mWindowsFreezingScreen = true;
|
mWindowsFreezingScreen = true;
|
||||||
mH.removeMessages(H.WINDOW_FREEZE_TIMEOUT);
|
mH.removeMessages(H.WINDOW_FREEZE_TIMEOUT);
|
||||||
mH.sendMessageDelayed(mH.obtainMessage(H.WINDOW_FREEZE_TIMEOUT), 2000);
|
mH.sendMessageDelayed(mH.obtainMessage(H.WINDOW_FREEZE_TIMEOUT),
|
||||||
|
WINDOW_FREEZE_TIMEOUT_DURATION);
|
||||||
mWaitingForConfig = true;
|
mWaitingForConfig = true;
|
||||||
getDefaultDisplayContentLocked().layoutNeeded = true;
|
getDefaultDisplayContentLocked().layoutNeeded = true;
|
||||||
startFreezingDisplayLocked(inTransaction, 0, 0);
|
startFreezingDisplayLocked(inTransaction, 0, 0);
|
||||||
@@ -8380,7 +8384,7 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
// when we first froze the display.
|
// when we first froze the display.
|
||||||
mH.removeMessages(H.WINDOW_FREEZE_TIMEOUT);
|
mH.removeMessages(H.WINDOW_FREEZE_TIMEOUT);
|
||||||
mH.sendMessageDelayed(mH.obtainMessage(
|
mH.sendMessageDelayed(mH.obtainMessage(
|
||||||
H.WINDOW_FREEZE_TIMEOUT), 2000);
|
H.WINDOW_FREEZE_TIMEOUT), WINDOW_FREEZE_TIMEOUT_DURATION);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user