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

Commit 03f2d1e5 authored by Chienyuan's avatar Chienyuan Committed by android-build-merger
Browse files

Merge "Don't set value when developer options disabled" am: 692f5368 am: 5ef88438

am: 4f7895f0

Change-Id: I688e3dfee47ead666e93d8b5a42ad88a49259d65
parents 63365096 4f7895f0
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -66,20 +66,6 @@ public class BluetoothA2dpHwOffloadPreferenceController extends DeveloperOptions
        }
    }

    @Override
    protected void onDeveloperOptionsSwitchDisabled() {
        super.onDeveloperOptionsSwitchDisabled();
        final boolean offloadSupported =
                SystemProperties.getBoolean(A2DP_OFFLOAD_SUPPORTED_PROPERTY, false);
        if (offloadSupported) {
            ((SwitchPreference) mPreference).setChecked(false);
            SystemProperties.set(A2DP_OFFLOAD_DISABLED_PROPERTY, "false");
        } else {
            ((SwitchPreference) mPreference).setChecked(true);
            SystemProperties.set(A2DP_OFFLOAD_DISABLED_PROPERTY, "true");
        }
    }

    public void onA2dpHwDialogConfirmed() {
        final boolean offloadDisabled =
                SystemProperties.getBoolean(A2DP_OFFLOAD_DISABLED_PROPERTY, false);