diff options
-rw-r--r-- | gui/action.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/action.cpp b/gui/action.cpp index d72b33194..27fd7a5d7 100644 --- a/gui/action.cpp +++ b/gui/action.cpp @@ -1268,6 +1268,7 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */) int wipe_dalvik = 0; gui_print("Starting ADB sideload feature...\n"); + bool mtp_was_enabled = TWFunc::Toggle_MTP(false); DataManager::GetValue("tw_wipe_dalvik", wipe_dalvik); ret = apply_from_adb("/"); DataManager::SetValue("tw_has_cancel", 0); // Remove cancel button from gui now that the zip install is going to start @@ -1289,6 +1290,7 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */) set_usb_driver(false); maybe_restart_adbd(); } + TWFunc::Toggle_MTP(mtp_was_enabled); if (strcmp(file_prop, "error") != 0) { struct stat st; stat("/sideload/exit", &st); |