summaryrefslogtreecommitdiffstats
path: root/twrp.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2015-01-14 18:08:13 +0100
committerDees Troy <dees_troy@teamw.in>2015-01-22 17:51:57 +0100
commitfd0439ed590f4c12b29d6392c9022c21cc44b997 (patch)
tree2e81101e733f1d67705313fb3d486e3a345f7311 /twrp.cpp
parentgui: clean up error handling in resource manager (diff)
downloadandroid_bootable_recovery-fd0439ed590f4c12b29d6392c9022c21cc44b997.tar
android_bootable_recovery-fd0439ed590f4c12b29d6392c9022c21cc44b997.tar.gz
android_bootable_recovery-fd0439ed590f4c12b29d6392c9022c21cc44b997.tar.bz2
android_bootable_recovery-fd0439ed590f4c12b29d6392c9022c21cc44b997.tar.lz
android_bootable_recovery-fd0439ed590f4c12b29d6392c9022c21cc44b997.tar.xz
android_bootable_recovery-fd0439ed590f4c12b29d6392c9022c21cc44b997.tar.zst
android_bootable_recovery-fd0439ed590f4c12b29d6392c9022c21cc44b997.zip
Diffstat (limited to 'twrp.cpp')
-rw-r--r--twrp.cpp4
1 files changed, 2 insertions, 2 deletions
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");
}
}