* commit 'a0918440803bcfa1d28472d70dd0e37ca79814fb': Fix USB mode development setting
This commit is contained in:
@@ -1352,7 +1352,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() {
|
||||
|
Reference in New Issue
Block a user