Fix regression of wrong min value on night display slice

The min value of NightDisplayIntensityPreferenceController
should always be 0 (which is the old value we used before
ag/7062353). The range is cacluated from the relative value
to MinimumColorTemperature, which means the min value should
always be 0.

Test: atest NightDisplayIntensityPreferenceControllerTest
Fixes:130758028
Change-Id: Ica75672dda6a9ee0c6013f1c903611263b7d133f
This commit is contained in:
lindatseng
2019-04-18 00:51:23 -07:00
parent cef4e42dc2
commit 55f66a9177
2 changed files with 19 additions and 4 deletions

View File

@@ -82,7 +82,8 @@ public class NightDisplayIntensityPreferenceController extends SliderPreferenceC
@Override
public int getMin() {
return ColorDisplayManager.getMinimumColorTemperature(mContext);
// The min should always be 0 in this case.
return 0;
}
/**