Replace some customized RadioButtonPreferences

- Deleted ZenCustomRadioButtonPreference
- Deleted RadioButtonPreferenceWithExtraWidget
- Replaced with RadioButtonPreference

Bug: 173472216
Test: robotest
Change-Id: I645b59d65ae14af1f384f16ee7b76b3c98e23e1f
This commit is contained in:
Edgar Wang
2020-11-17 12:59:54 +08:00
parent 379cd8a008
commit c0e7328a88
27 changed files with 123 additions and 627 deletions

View File

@@ -27,11 +27,12 @@ import com.android.internal.logging.nano.MetricsProto;
import com.android.settings.core.PreferenceControllerMixin;
import com.android.settings.core.SubSettingLauncher;
import com.android.settingslib.core.lifecycle.Lifecycle;
import com.android.settingslib.widget.RadioButtonPreference;
public class ZenRuleVisEffectsCustomPreferenceController extends
AbstractZenCustomRulePreferenceController implements PreferenceControllerMixin {
private ZenCustomRadioButtonPreference mPreference;
private RadioButtonPreference mPreference;
public ZenRuleVisEffectsCustomPreferenceController(Context context, Lifecycle lifecycle,
String key) {
@@ -43,12 +44,12 @@ public class ZenRuleVisEffectsCustomPreferenceController extends
super.displayPreference(screen);
mPreference = screen.findPreference(getPreferenceKey());
mPreference.setOnGearClickListener(p -> {
mPreference.setOnClickListener(p -> {
launchCustomSettings();
});
mPreference.setOnRadioButtonClickListener(p -> {
mPreference.setExtraWidgetOnClickListener(p -> {
launchCustomSettings();
});
}