Merge "Only start tether when not already enabled" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f62f91b0b6
@@ -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