Add remaining whitelisted controllers
Because I missed them in the long whitelist the first time... Bug: 79779103 Test: robotests Change-Id: I01c8c80fe306667c1d3ac007b16fad546c5a5f40
This commit is contained in:
@@ -19,6 +19,8 @@ package com.android.settings.fuelgauge;
|
||||
|
||||
import android.content.Context;
|
||||
import android.provider.Settings;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import androidx.preference.SwitchPreference;
|
||||
import androidx.preference.Preference;
|
||||
|
||||
@@ -48,6 +50,11 @@ public class SmartBatteryPreferenceController extends BasePreferenceController i
|
||||
: UNSUPPORTED_ON_DEVICE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSliceable() {
|
||||
return TextUtils.equals(getPreferenceKey(), "smart_battery");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateState(Preference preference) {
|
||||
super.updateState(preference);
|
||||
|
||||
Reference in New Issue
Block a user