From 3f15be40aa8fe06fe92868fdb1b88b1a249bd7de Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Mon, 9 Feb 2015 09:39:47 -0600 Subject: Reset data manager variables before running runPages Fixes a problem where, if you decrypt the device, the promtp for installing SuperSU appears briefly before it automatically reboots without letting you confirm or deny. Change-Id: I6f7b1c7096e788ccabd8f5aac9eb01d38bfbc0f7 --- gui/gui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/gui.cpp b/gui/gui.cpp index 446523268..469beb630 100644 --- a/gui/gui.cpp +++ b/gui/gui.cpp @@ -588,6 +588,9 @@ static void loopTimer(void) static int runPages(const char *page_name, const int stop_on_page_done) { + DataManager::SetValue("tw_page_done", 0); + DataManager::SetValue("tw_gui_done", 0); + if (page_name) gui_changePage(page_name); @@ -896,7 +899,6 @@ extern "C" int gui_startPage(const char *page_name, const int allow_commands, in } } #endif - DataManager::SetValue("tw_page_done", 0); return runPages(page_name, stop_on_page_done); } -- cgit v1.2.3