Add keywords for AOD setting.
Used the WiFi slice for inspiration: ag/6793584 Also added "ambient" to the keywords, since "ambient display" is another phrase used for AOD. Bug: 279029717 Test: manually checked that the setting shows up when searching for "aod" Change-Id: I8a3a4a6635c9724565426b859722242d2bae9e49
This commit is contained in:
@@ -22,7 +22,6 @@ import android.os.PowerManager;
|
||||
import android.os.SystemProperties;
|
||||
import android.os.UserHandle;
|
||||
import android.provider.Settings;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.preference.Preference;
|
||||
|
||||
@@ -59,7 +58,7 @@ public class AmbientDisplayAlwaysOnPreferenceController extends TogglePreference
|
||||
|
||||
@Override
|
||||
public boolean isSliceable() {
|
||||
return TextUtils.equals(getPreferenceKey(), "ambient_display_always_on");
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user