diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/usb/UsbPreferenceActivity.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/usb/UsbPreferenceActivity.java b/packages/SystemUI/src/com/android/systemui/usb/UsbPreferenceActivity.java index 3ed44e8..187a486 100644 --- a/packages/SystemUI/src/com/android/systemui/usb/UsbPreferenceActivity.java +++ b/packages/SystemUI/src/com/android/systemui/usb/UsbPreferenceActivity.java @@ -78,8 +78,10 @@ public class UsbPreferenceActivity extends Activity implements View.OnClickListe if (v.equals(mMtpPtpButton)) {
if (mPtpActive) {
mUsbManager.setPrimaryFunction(UsbManager.USB_FUNCTION_MTP);
+ mUsbManager.setDefaultFunction(UsbManager.USB_FUNCTION_MTP);
} else {
mUsbManager.setPrimaryFunction(UsbManager.USB_FUNCTION_PTP);
+ mUsbManager.setDefaultFunction(UsbManager.USB_FUNCTION_PTP);
}
} else if (v.equals(mInstallerCdButton)) {
mUsbManager.setPrimaryFunction(UsbManager.USB_FUNCTION_MASS_STORAGE);
|