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

Commit 4391fc6a authored by FangYunong's avatar FangYunong Committed by Gerrit - the friendly Code Review server
Browse files

Settings: Remove "Bluetooth tethering"

Remove "Bluetooth tethering" in Tethering & Mobile
HotSpot and Help at MPCS and TMO mode.

Change-Id: Idff8a187057c3a2eb11b5aca02678e552cf491dc
CRs-fixed: 1064452
parent 48198428
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -89,4 +89,6 @@
    <string-array translatable="false" name="carrier_operator_list">
    </string-array>
    <bool name="config_regional_security_show_password_enable">false</bool>
    <!-- Config to show bluetooth menu-->
    <bool name="config_hide_bluetooth_menu">false</bool>
</resources>
+3 −1
Original line number Diff line number Diff line
@@ -261,7 +261,9 @@ public class TetherSettings extends RestrictedSettingsFragment
            getPreferenceScreen().removePreference(mCreateNetwork);
        }

        if (!bluetoothAvailable) {
        final boolean configHideBluetoothAndHelpMenu = getResources().getBoolean(
                R.bool.config_hide_bluetooth_menu);
        if (!bluetoothAvailable || configHideBluetoothAndHelpMenu) {
            getPreferenceScreen().removePreference(mBluetoothTether);
        } else {
            BluetoothPan pan = mBluetoothPan.get();