Revert "Migrate to CompoundButton.OnCheckedChangeListener"
Revert submission 25147565-onSwitchChanged-CompoundButton Reason for revert: breaking builds Bug:309601476 Reverted changes: /q/submissionid:25147565-onSwitchChanged-CompoundButton Change-Id: Ie746db87d9c642599593aa3d5e5baf6b7ba89c0e
This commit is contained in:
committed by
Android (Google) Code Review
parent
71d1f021af
commit
8979681a8d
@@ -80,7 +80,7 @@ public class AutomaticStorageManagerSwitchBarControllerTest {
|
||||
|
||||
@Test
|
||||
public void onSwitchChanged_false_recordsAMetric() {
|
||||
mController.onCheckedChanged(null, false);
|
||||
mController.onSwitchChanged(null, false);
|
||||
|
||||
verify(mMetricsFeatureProvider)
|
||||
.action(
|
||||
@@ -91,7 +91,7 @@ public class AutomaticStorageManagerSwitchBarControllerTest {
|
||||
|
||||
@Test
|
||||
public void onSwitchChanged_true_recordsAMetric() {
|
||||
mController.onCheckedChanged(null, true);
|
||||
mController.onSwitchChanged(null, true);
|
||||
|
||||
verify(mMetricsFeatureProvider)
|
||||
.action(
|
||||
@@ -102,7 +102,7 @@ public class AutomaticStorageManagerSwitchBarControllerTest {
|
||||
|
||||
@Test
|
||||
public void onSwitchChanged_showWarningFragmentIfNotEnabledByDefault() {
|
||||
mController.onCheckedChanged(null, true);
|
||||
mController.onSwitchChanged(null, true);
|
||||
|
||||
verify(mFragmentManager.beginTransaction())
|
||||
.add(any(Fragment.class), eq(ActivationWarningFragment.TAG));
|
||||
@@ -112,7 +112,7 @@ public class AutomaticStorageManagerSwitchBarControllerTest {
|
||||
public void onSwitchChange_doNotShowWarningFragmentIfEnabledByDefault() {
|
||||
SystemProperties.set("ro.storage_manager.enabled", "true");
|
||||
|
||||
mController.onCheckedChanged(null, true);
|
||||
mController.onSwitchChanged(null, true);
|
||||
|
||||
verify(mFragmentManager.beginTransaction(), never())
|
||||
.add(any(Fragment.class), eq(ActivationWarningFragment.TAG));
|
||||
|
||||
Reference in New Issue
Block a user