Revert "Apply SettingsLib SeekBarPreference to Settings"
Revert submission 13422386-seekbar-sc-dev Reason for revert: build broken in SettingsGoogle Reverted Changes: I0c2d0d5fb:Apply SettingsLib SeekBarPreference to SettingsGoo... I1844bb3b0:Apply SettingsLib SeekBarPreference to a11y vibrat... Ia3e4adec8:Apply SettingsLib SeekBarPreference to a11y vibrat... Iadee57e9d:Apply SettingsLib SeekBarPreference to a11y vibrat... I219878716:Apply SettingsLib SeekBarPreference to Settings I959f5672c:Create SettingsLibSeekBarPreference I92545a69c:Apply SettingsLib SeekBarPreference to a11y vibrat... Change-Id: Ie6c3b0dc072e044796abdb33fca305f9f9d47c4d Bug: 176818438
This commit is contained in:
committed by
Giuliano Procida
parent
d6b5bbb5cb
commit
cdff5c6ceb
@@ -27,7 +27,7 @@ import androidx.preference.Preference;
|
||||
|
||||
import com.android.settings.accounts.AccountRestrictionHelper;
|
||||
import com.android.settings.core.SliderPreferenceController;
|
||||
import com.android.settingslib.Restrictable;
|
||||
import com.android.settingslib.RestrictedPreference;
|
||||
|
||||
/**
|
||||
* Base class for preference controller that handles preference that enforce adjust volume
|
||||
@@ -51,10 +51,10 @@ public abstract class AdjustVolumeRestrictedPreferenceController extends
|
||||
|
||||
@Override
|
||||
public void updateState(Preference preference) {
|
||||
if (!(preference instanceof Restrictable)) {
|
||||
if (!(preference instanceof RestrictedPreference)) {
|
||||
return;
|
||||
}
|
||||
mHelper.enforceRestrictionOnPreference(preference,
|
||||
mHelper.enforceRestrictionOnPreference((RestrictedPreference) preference,
|
||||
UserManager.DISALLOW_ADJUST_VOLUME, UserHandle.myUserId());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user