summaryrefslogtreecommitdiffstats
path: root/twrp-functions.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-03-14 20:54:37 +0100
committerDees Troy <dees_troy@teamw.in>2016-03-31 16:43:53 +0200
commitfe91611cb1c484429f2fdc958732337a5fc38fa8 (patch)
treee91133c9a9dff6f1dbba46c5110cd203dc0ddc55 /twrp-functions.cpp
parentlanguages: fix and improve german translation (diff)
downloadandroid_bootable_recovery-fe91611cb1c484429f2fdc958732337a5fc38fa8.tar
android_bootable_recovery-fe91611cb1c484429f2fdc958732337a5fc38fa8.tar.gz
android_bootable_recovery-fe91611cb1c484429f2fdc958732337a5fc38fa8.tar.bz2
android_bootable_recovery-fe91611cb1c484429f2fdc958732337a5fc38fa8.tar.lz
android_bootable_recovery-fe91611cb1c484429f2fdc958732337a5fc38fa8.tar.xz
android_bootable_recovery-fe91611cb1c484429f2fdc958732337a5fc38fa8.tar.zst
android_bootable_recovery-fe91611cb1c484429f2fdc958732337a5fc38fa8.zip
Diffstat (limited to '')
-rw-r--r--twrp-functions.cpp3
1 files changed, 2 insertions, 1 deletions
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: