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

Commit b8b20a50 authored by Marco Nelissen's avatar Marco Nelissen Committed by Android (Google) Code Review
Browse files

Merge "Fix USB mode development setting" into mnc-dev

parents 85a71d6a e6ffe317
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1326,7 +1326,13 @@ public class DevelopmentSettings extends SettingsPreferenceFragment

    private void writeUsbConfigurationOption(Object newValue) {
        UsbManager manager = (UsbManager)getActivity().getSystemService(Context.USB_SERVICE);
        manager.setCurrentFunction(newValue.toString());
        String function = newValue.toString();
        manager.setCurrentFunction(function);
        if (function.equals("none")) {
            manager.setUsbDataUnlocked(false);
        } else {
            manager.setUsbDataUnlocked(true);
        }
    }

    private void updateCpuUsageOptions() {