Not call MainSwitchBar.getSwitch()
This is private implement details, will be removed in future. Should call MainSwitchBar's isChecked() and setChecked() to ensure main switch bar's style is set correctly. Bug: 306658427 Test: manual - on wifi tether Test: manual - on developer options Test: m RunSettingsRoboTests Change-Id: I292ffbcf73da0721fc206e3dac7610a0aeb20047
This commit is contained in:
@@ -33,13 +33,11 @@ public class AudioSharingSwitchBarController
|
||||
|
||||
private final Context mContext;
|
||||
private final SettingsMainSwitchBar mSwitchBar;
|
||||
private final Switch mSwitch;
|
||||
|
||||
AudioSharingSwitchBarController(Context context, SettingsMainSwitchBar switchBar) {
|
||||
mContext = context;
|
||||
mSwitchBar = switchBar;
|
||||
mSwitch = mSwitchBar.getSwitch();
|
||||
mSwitch.setChecked(false);
|
||||
mSwitchBar.setChecked(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user