Merge "Set EvenDimmer to true by default" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
288d98797b
@@ -18,6 +18,7 @@ package com.android.settings.display;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.Resources;
|
||||
import android.os.UserHandle;
|
||||
import android.provider.Settings;
|
||||
import android.util.Log;
|
||||
|
||||
@@ -79,7 +80,8 @@ public class EvenDimmerPreferenceController extends TogglePreferenceController {
|
||||
}
|
||||
|
||||
private boolean getEvenDimmerActivated() {
|
||||
return Settings.Secure.getFloat(mContext.getContentResolver(),
|
||||
Settings.Secure.EVEN_DIMMER_ACTIVATED, 0) == 1;
|
||||
return Settings.Secure.getFloatForUser(mContext.getContentResolver(),
|
||||
Settings.Secure.EVEN_DIMMER_ACTIVATED,
|
||||
/* def= */ 1.0f, UserHandle.USER_CURRENT) == 1.0f;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user