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

Commit 74e1412f authored by Chaohui Wang's avatar Chaohui Wang Committed by Android (Google) Code Review
Browse files

Merge "Fix Bluetooth tethering toggle status" into udc-dev

parents e99f757f 3988d11d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -171,6 +171,8 @@ public class TetherSettings extends RestrictedSettingsFragment
            return;
        }

        setupTetherPreference();

        final Activity activity = getActivity();
        BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
        if (adapter != null) {
@@ -184,7 +186,6 @@ public class TetherSettings extends RestrictedSettingsFragment
                    new IntentFilter(BluetoothAdapter.ACTION_STATE_CHANGED));
        }

        setupTetherPreference();
        setTopIntroPreferenceTitle();

        mDataSaverBackend.addListener(this);
@@ -605,6 +606,7 @@ public class TetherSettings extends RestrictedSettingsFragment
                public void onServiceConnected(int profile, BluetoothProfile proxy) {
                    if (mBluetoothPan.get() == null) {
                        mBluetoothPan.set((BluetoothPan) proxy);
                        updateBluetoothState();
                    }
                }