summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-27 15:49:29 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-27 15:50:56 +0200
commita58beade0a4f5342f5dcd3b3a597f9183de92260 (patch)
tree62bfd10e4fc279cc4decc7fd96a0e6a86d710008 /gui
parentDisplay symlinks and block devices in file manager (diff)
downloadandroid_bootable_recovery-a58beade0a4f5342f5dcd3b3a597f9183de92260.tar
android_bootable_recovery-a58beade0a4f5342f5dcd3b3a597f9183de92260.tar.gz
android_bootable_recovery-a58beade0a4f5342f5dcd3b3a597f9183de92260.tar.bz2
android_bootable_recovery-a58beade0a4f5342f5dcd3b3a597f9183de92260.tar.lz
android_bootable_recovery-a58beade0a4f5342f5dcd3b3a597f9183de92260.tar.xz
android_bootable_recovery-a58beade0a4f5342f5dcd3b3a597f9183de92260.tar.zst
android_bootable_recovery-a58beade0a4f5342f5dcd3b3a597f9183de92260.zip
Diffstat (limited to 'gui')
-rw-r--r--gui/action.cpp23
1 files changed, 11 insertions, 12 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index d63693440..7d6686121 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -27,7 +27,6 @@
extern "C" {
#include "../common.h"
-#include "../tw_reboot.h"
#include "../minuitwrp/minui.h"
#include "../recovery_ui.h"
#include "../extra-functions.h"
@@ -314,16 +313,16 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */)
sync();
- if (arg == "recovery")
- tw_reboot(rb_recovery);
- else if (arg == "poweroff")
- tw_reboot(rb_poweroff);
- else if (arg == "bootloader")
- tw_reboot(rb_bootloader);
- else if (arg == "download")
- tw_reboot(rb_download);
- else
- tw_reboot(rb_system);
+ if (arg == "recovery")
+ TWFunc::tw_reboot(rb_recovery);
+ else if (arg == "poweroff")
+ TWFunc::tw_reboot(rb_poweroff);
+ else if (arg == "bootloader")
+ TWFunc::tw_reboot(rb_bootloader);
+ else if (arg == "download")
+ TWFunc::tw_reboot(rb_download);
+ else
+ TWFunc::tw_reboot(rb_system);
// This should never occur
return -1;
@@ -1051,7 +1050,7 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */)
ui_print("Processing OpenRecoveryScript file...\n");
if (OpenRecoveryScript::run_script_file() == 0) {
usleep(2000000); // Sleep for 2 seconds before rebooting
- tw_reboot(rb_system);
+ TWFunc::tw_reboot(rb_system);
load_theme = 0;
}
}