From fd0439ed590f4c12b29d6392c9022c21cc44b997 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 14 Jan 2015 11:08:13 -0600 Subject: Move ORS command line into main thread Also eliminate the mostly similar runPage function in favor of using a single runPages function to avoid code duplication. Change-Id: I46ef414beb4009fee16d4de13d8a5ab2b9678409 --- twrp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'twrp.cpp') diff --git a/twrp.cpp b/twrp.cpp index 3489f8cfc..b6d3d79fd 100644 --- a/twrp.cpp +++ b/twrp.cpp @@ -276,7 +276,7 @@ int main(int argc, char **argv) { // Offer to decrypt if the device is encrypted if (DataManager::GetIntValue(TW_IS_ENCRYPTED) != 0) { LOGINFO("Is encrypted, do decrypt page first\n"); - if (gui_startPage("decrypt") != 0) { + if (gui_startPage("decrypt", 1, 1) != 0) { LOGERR("Failed to start decrypt GUI page.\n"); } else { // Check for and load custom theme if present @@ -347,7 +347,7 @@ int main(int argc, char **argv) { if (TWFunc::Path_Exists("/supersu/su") && !TWFunc::Path_Exists("/system/bin/su") && !TWFunc::Path_Exists("/system/xbin/su") && !TWFunc::Path_Exists("/system/bin/.ext/.su")) { // Device doesn't have su installed DataManager::SetValue("tw_busy", 1); - if (gui_startPage("installsu") != 0) { + if (gui_startPage("installsu", 1, 1) != 0) { LOGERR("Failed to start SuperSU install page.\n"); } } -- cgit v1.2.3