Avoid disabling the Wi-Fi hotspot switch causing Talkback confusion
- Use local variables to filter inappropriate callbacks when the switch is busy Bug: 374234537 Flag: EXEMPT bugfix Test: Manual testing atest -c WifiTetherSwitchBarControllerTest Change-Id: If5237230c73cae5a6230a6d3fdaa65a8511bdcd8
This commit is contained in:
@@ -147,8 +147,8 @@ public class WifiTetherSwitchBarControllerTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void onSwitchChanged_switchNotEnabled_doNothingForTethering() {
|
||||
when(mSwitch.isEnabled()).thenReturn(false);
|
||||
public void onSwitchChanged_switchIsBusy_doNothingForTethering() {
|
||||
mController.mIsSwitchBusy = true;
|
||||
|
||||
mController.onCheckedChanged(mSwitch, true);
|
||||
|
||||
|
Reference in New Issue
Block a user