Loading src/com/android/settings/connecteddevice/usb/UsbDetailsTranscodeMtpController.java +6 −0 Original line number Diff line number Diff line Loading @@ -77,6 +77,12 @@ public class UsbDetailsTranscodeMtpController extends UsbDetailsController public boolean onPreferenceClick(Preference preference) { SystemProperties.set(TRANSCODE_MTP_SYS_PROP_KEY, Boolean.toString(mSwitchPreference.isChecked())); final long previousFunctions = mUsbBackend.getCurrentFunctions(); // Toggle the MTP connection to reload file sizes for files shared via MTP clients mUsbBackend.setCurrentFunctions(previousFunctions & ~UsbManager.FUNCTION_MTP); mUsbBackend.setCurrentFunctions(previousFunctions); return true; } Loading Loading
src/com/android/settings/connecteddevice/usb/UsbDetailsTranscodeMtpController.java +6 −0 Original line number Diff line number Diff line Loading @@ -77,6 +77,12 @@ public class UsbDetailsTranscodeMtpController extends UsbDetailsController public boolean onPreferenceClick(Preference preference) { SystemProperties.set(TRANSCODE_MTP_SYS_PROP_KEY, Boolean.toString(mSwitchPreference.isChecked())); final long previousFunctions = mUsbBackend.getCurrentFunctions(); // Toggle the MTP connection to reload file sizes for files shared via MTP clients mUsbBackend.setCurrentFunctions(previousFunctions & ~UsbManager.FUNCTION_MTP); mUsbBackend.setCurrentFunctions(previousFunctions); return true; } Loading