OSDN Git Service

Remove provisioning dialog from wifi-tethering
authorSalvador Martinez <dehboxturtle@google.com>
Mon, 9 Apr 2018 22:27:02 +0000 (15:27 -0700)
committerSalvador Martinez <dehboxturtle@google.com>
Mon, 9 Apr 2018 22:27:02 +0000 (15:27 -0700)
We no longer want this dialog to show when a user toggles tethering.
Failures to set up the AP will still be handled correctly.

Test: robotests pass
Bug: 62629055
Change-Id: Id3d0bf9694a1c8b6ae353bfd6634dd0b56813497

src/com/android/settings/wifi/tether/WifiTetherSwitchBarController.java

index bdad9e6..ab08fdb 100644 (file)
@@ -102,7 +102,7 @@ public class WifiTetherSwitchBarController implements SwitchWidgetController.OnS
 
     void startTether() {
         mSwitchBar.setEnabled(false);
-        mConnectivityManager.startTethering(TETHERING_WIFI, true /* showProvisioningUi */,
+        mConnectivityManager.startTethering(TETHERING_WIFI, false /* showProvisioningUi */,
                 mOnStartTetheringCallback, new Handler(Looper.getMainLooper()));
     }