Skip to content

Commit 34fb1cc

Browse files
committed
a few things to speed things up
1 parent 3c98114 commit 34fb1cc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

core/java/android/view/WindowOrientationListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ static final class SensorEventListenerImpl implements SensorEventListener {
322322
// The number of milliseconds for which the device posture must be stable
323323
// before we perform an orientation change. If the device appears to be rotating
324324
// (being picked up, put down) then we keep waiting until it settles.
325-
private static final int SETTLE_TIME_MS = 200;
325+
private static final int SETTLE_TIME_MS = 50;
326326

327327
// The maximum change in magnitude that can occur during the settle time.
328328
// Tuning this constant particularly helps to filter out situations where the

core/res/res/values/config.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@
6262
<bool name="config_sf_slowBlur">true</bool>
6363

6464
<!-- The duration (in milliseconds) of a short animation. -->
65-
<integer name="config_shortAnimTime">200</integer>
65+
<integer name="config_shortAnimTime">100</integer>
6666

6767
<!-- The duration (in milliseconds) of a medium-length animation. -->
68-
<integer name="config_mediumAnimTime">400</integer>
68+
<integer name="config_mediumAnimTime">200</integer>
6969

7070
<!-- The duration (in milliseconds) of a long animation. -->
71-
<integer name="config_longAnimTime">500</integer>
71+
<integer name="config_longAnimTime">250</integer>
7272

7373
<!-- The duration (in milliseconds) of the activity open/close and fragment open/close animations. -->
74-
<integer name="config_activityShortDur">150</integer>
75-
<integer name="config_activityDefaultDur">220</integer>
74+
<integer name="config_activityShortDur">50</integer>
75+
<integer name="config_activityDefaultDur">120</integer>
7676

7777
<!-- Duration for the dim animation behind a dialog. This may be either
7878
a percentage, which is relative to the duration of the enter/open

0 commit comments

Comments
 (0)