Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d61c23b3 authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by android code review
Browse files

Merge "TetheringSetting: Keep Tethering checkbox unchecked until tethering up"

parents 5dbc1f64 83397eab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -493,8 +493,8 @@ public class TetherSettings extends SettingsPreferenceFragment
    private void setUsbTethering(boolean enabled) {
        ConnectivityManager cm =
            (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);
        if (cm.setUsbTethering(enabled) != ConnectivityManager.TETHER_ERROR_NO_ERROR) {
        mUsbTether.setChecked(false);
        if (cm.setUsbTethering(enabled) != ConnectivityManager.TETHER_ERROR_NO_ERROR) {
            mUsbTether.setSummary(R.string.usb_tethering_errored_subtext);
            return;
        }