Merge "Only start tether when not already enabled" into pi-dev am: f62f91b0b6
am: 964d107491
Change-Id: I0d325498e2ea8526fbc4e6ec4bf579331bf0848b
This commit is contained in:
@@ -91,10 +91,10 @@ public class WifiTetherSwitchBarController implements SwitchWidgetController.OnS
|
||||
|
||||
@Override
|
||||
public boolean onSwitchToggled(boolean isChecked) {
|
||||
if (isChecked) {
|
||||
startTether();
|
||||
} else {
|
||||
if (!isChecked) {
|
||||
stopTether();
|
||||
} else if (!mWifiManager.isWifiApEnabled()) {
|
||||
startTether();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user