summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorTom Hite <tdhite@gmail.com>2014-09-15 03:31:03 +0200
committerDees Troy <dees_troy@teamw.in>2014-10-08 19:35:32 +0200
commit5a9267283c05ba70822ae27a8496c95cdd4a1058 (patch)
tree57c58881136d29aa6a5d4b5db4dbc91935df0434 /gui
parentmtp: cleanup, fixes and performance improvements (diff)
downloadandroid_bootable_recovery-5a9267283c05ba70822ae27a8496c95cdd4a1058.tar
android_bootable_recovery-5a9267283c05ba70822ae27a8496c95cdd4a1058.tar.gz
android_bootable_recovery-5a9267283c05ba70822ae27a8496c95cdd4a1058.tar.bz2
android_bootable_recovery-5a9267283c05ba70822ae27a8496c95cdd4a1058.tar.lz
android_bootable_recovery-5a9267283c05ba70822ae27a8496c95cdd4a1058.tar.xz
android_bootable_recovery-5a9267283c05ba70822ae27a8496c95cdd4a1058.tar.zst
android_bootable_recovery-5a9267283c05ba70822ae27a8496c95cdd4a1058.zip
Diffstat (limited to '')
-rw-r--r--gui/action.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index 7e432226e..398ef503a 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -853,7 +853,9 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */)
DataManager::SetValue("tw_filename", zip_queue[i]);
DataManager::SetValue(TW_ZIP_INDEX, (i + 1));
+ TWFunc::SetPerformanceMode(true);
ret_val = flash_zip(zip_queue[i], arg, simulate, &wipe_cache);
+ TWFunc::SetPerformanceMode(false);
if (ret_val != 0) {
gui_print("Error flashing zip '%s'\n", zip_queue[i].c_str());
i = 10; // Error flashing zip - exit queue
@@ -1416,10 +1418,12 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */)
DataManager::GetValue("tw_restore", Restore_Path);
Restore_Path += "/";
DataManager::GetValue("tw_restore_password", Password);
+ TWFunc::SetPerformanceMode(true);
if (TWFunc::Try_Decrypting_Backup(Restore_Path, Password))
op_status = 0; // success
else
op_status = 1; // fail
+ TWFunc::SetPerformanceMode(false);
}
operation_end(op_status, simulate);