Revert "Revert "Unable to select twilight scheduling after enabling location""
This reverts commit 782438347b
.
Bug: 153115261
Reason for revert: fixing tests
Change-Id: I497a2b83cbe3eaee5f5fb3eb4df73618130fc6e2
This commit is contained in:
@@ -74,7 +74,7 @@ public class NightDisplayAutoModePreferenceController extends BasePreferenceCont
|
||||
if (String.valueOf(ColorDisplayManager.AUTO_MODE_TWILIGHT).equals(newValue)
|
||||
&& !mLocationManager.isLocationEnabled()) {
|
||||
TwilightLocationDialog.show(mContext);
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
return mColorDisplayManager.setNightDisplayAutoMode(Integer.parseInt((String) newValue));
|
||||
}
|
||||
|
Reference in New Issue
Block a user