From fe91611cb1c484429f2fdc958732337a5fc38fa8 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Mon, 14 Mar 2016 14:54:37 -0500 Subject: DataManager Updates The goal of this change is to make DataManager use InfoManager to reduce code duplication. Change-Id: Ia4f4c4324453a192995e0f442db0a03628c13e46 --- twrp-functions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'twrp-functions.cpp') diff --git a/twrp-functions.cpp b/twrp-functions.cpp index 63ed0a644..eb1f4c2f7 100644 --- a/twrp-functions.cpp +++ b/twrp-functions.cpp @@ -506,9 +506,10 @@ void TWFunc::Update_Intent_File(string Intent) { // reboot: Reboot the system. Return -1 on error, no return on success int TWFunc::tw_reboot(RebootCommand command) { + DataManager::Flush(); + Update_Log_File(); // Always force a sync before we reboot sync(); - Update_Log_File(); switch (command) { case rb_current: -- cgit v1.2.3