Merge "Don't set value when developer options disabled" am: 692f5368d0
am: 5ef8843845
Change-Id: Idb3c130e31571111911b4e17d989b1199ff7619a
This commit is contained in:
@@ -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() {
|
public void onA2dpHwDialogConfirmed() {
|
||||||
final boolean offloadDisabled =
|
final boolean offloadDisabled =
|
||||||
SystemProperties.getBoolean(A2DP_OFFLOAD_DISABLED_PROPERTY, false);
|
SystemProperties.getBoolean(A2DP_OFFLOAD_DISABLED_PROPERTY, false);
|
||||||
|
Reference in New Issue
Block a user