Merge "Let UsbDeviceManager choose the appropriate function default" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9405a81f7a
@@ -95,7 +95,7 @@ public class UsbModeChooserActivity extends Activity {
|
|||||||
private void setCurrentFunction(int which) {
|
private void setCurrentFunction(int which) {
|
||||||
switch (which) {
|
switch (which) {
|
||||||
case 0:
|
case 0:
|
||||||
mUsbManager.setCurrentFunction(UsbManager.USB_FUNCTION_MTP);
|
mUsbManager.setCurrentFunction(null);
|
||||||
mUsbManager.setUsbDataUnlocked(false);
|
mUsbManager.setUsbDataUnlocked(false);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
|
Reference in New Issue
Block a user