Remove the getSwitch() in SwitchWidgetController
IMHO we don't need to expose switch in SwitchWidgetController. This controller already has enough API to control the switch. Also rename mSwitchWidget to mSwitchController because it is not a widget. Bug: 69973752 Test: test still pass Change-Id: I0ac247e34468a44109ab26019f1303c814e381f2
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
|
||||
package com.android.settings.widget;
|
||||
|
||||
import android.widget.Switch;
|
||||
import com.android.settingslib.RestrictedLockUtils.EnforcedAdmin;
|
||||
|
||||
/*
|
||||
@@ -108,12 +107,4 @@ public abstract class SwitchWidgetController {
|
||||
* is {@code null}, then this preference will be enabled. Otherwise, it will be disabled.
|
||||
*/
|
||||
public abstract void setDisabledByAdmin(EnforcedAdmin admin);
|
||||
|
||||
/**
|
||||
* Get the underlying switch widget.
|
||||
*
|
||||
* @return the switch widget.
|
||||
*/
|
||||
public abstract Switch getSwitch();
|
||||
|
||||
}
|
Reference in New Issue
Block a user