Changes default timeout for rotation memorization.
Rotation memorization is an optimization for smart-autorotate. It will memorize last screen rotation before the screen turns off. And then use that memorized rotation next time when the phone get unlocked. The default timeout for the rotation memorization is 5 minutes. Based on the droidfood experience, we decided to reduce it to 10 seconds. Test: tested locally. Bug: 192010410 Change-Id: Iad49eaa0399cfd4c02a014920b61a36aa171ce68
This commit is contained in:
@@ -68,7 +68,7 @@ public abstract class WindowOrientationListener {
|
||||
private static final String KEY_ROTATION_MEMORIZATION_TIMEOUT =
|
||||
"rotation_memorization_timeout_millis";
|
||||
private static final long DEFAULT_ROTATION_RESOLVER_TIMEOUT_MILLIS = 700L;
|
||||
private static final long DEFAULT_ROTATION_MEMORIZATION_TIMEOUT_MILLIS = 300_000L; // 5 minutes
|
||||
private static final long DEFAULT_ROTATION_MEMORIZATION_TIMEOUT_MILLIS = 10_000L; // 10 seconds
|
||||
|
||||
private Handler mHandler;
|
||||
private SensorManager mSensorManager;
|
||||
|
||||
Reference in New Issue
Block a user