File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
services/java/com/android/server Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -178,8 +178,9 @@ public class PowerManagerService extends IPowerManager.Stub
178178 static final int ANIM_STEPS = 60 ; // nominal # of frames at 60Hz
179179 // Slower animation for autobrightness changes
180180 static final int AUTOBRIGHTNESS_ANIM_STEPS = 2 * ANIM_STEPS ;
181- // Even slower animation for autodimness changes
182- static final int AUTODIMNESS_ANIM_STEPS = 15 * ANIM_STEPS ;
181+ // Even slower animation for autodimness changes. Set to max to effectively disable dimming.
182+ // Note 100 is used to keep the mWindowScaleAnimation scaling below from overflowing an int.
183+ static final int AUTODIMNESS_ANIM_STEPS = Integer .MAX_VALUE / (NOMINAL_FRAME_TIME_MS * 100 );
183184 // Number of steps when performing a more immediate brightness change.
184185 static final int IMMEDIATE_ANIM_STEPS = 4 ;
185186
You can’t perform that action at this time.
0 commit comments