From 6bdcbb1b9643d53cfc415322bf9d5753305a2141 Mon Sep 17 00:00:00 2001 From: Dees_Troy Date: Sat, 26 Jan 2013 14:07:43 +0000 Subject: Reset progress bar in ORS Change-Id: Ia7df2fa80712dc9ff7fda97261fefa33ce823ae0 --- openrecoveryscript.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openrecoveryscript.cpp b/openrecoveryscript.cpp index 6df1207b9..e319a9c61 100644 --- a/openrecoveryscript.cpp +++ b/openrecoveryscript.cpp @@ -75,6 +75,7 @@ int OpenRecoveryScript::run_script_file(void) { if (fp != NULL) { DataManager::SetValue(TW_SIMULATE_ACTIONS, 0); + DataManager::SetValue("ui_progress", 0); // Reset the progress bar while (fgets(script_line, SCRIPT_COMMAND_SIZE, fp) != NULL && ret_val == 0) { cindex = 0; line_len = strlen(script_line); @@ -572,4 +573,4 @@ void OpenRecoveryScript::Run_OpenRecoveryScript(void) { if (gui_startPage("action_page") != 0) { LOGE("Failed to load OpenRecoveryScript GUI page.\n"); } -} \ No newline at end of file +} -- cgit v1.2.3