summaryrefslogtreecommitdiffstats
path: root/gui/action.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-04-04 17:59:28 +0200
committerEthan Yonker <dees_troy@teamw.in>2014-04-04 17:59:52 +0200
commit83e82578af038e85cf75cf6675dc76120ec84860 (patch)
tree4fa14b6da998fa07e1ac10978bd4b717bdcb2f54 /gui/action.cpp
parentStop printing Unable to mount to console if storage is removable. We will still print to (diff)
downloadandroid_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.tar
android_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.tar.gz
android_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.tar.bz2
android_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.tar.lz
android_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.tar.xz
android_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.tar.zst
android_bootable_recovery-83e82578af038e85cf75cf6675dc76120ec84860.zip
Diffstat (limited to 'gui/action.cpp')
-rw-r--r--gui/action.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index 453304ceb..9d7e482ca 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -800,7 +800,7 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */)
}
} else
ret_val = PartitionManager.Wipe_By_Path(arg);
-
+#ifdef TW_OEM_BUILD
if (arg == DataManager::GetSettingsStoragePath()) {
// If we wiped the settings storage path, recreate the TWRP folder and dump the settings
string Storage_Path = DataManager::GetSettingsStoragePath();
@@ -814,6 +814,7 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */)
LOGERR("Unable to recreate TWRP folder and save settings.\n");
}
}
+#endif
}
PartitionManager.Update_System_Details();
if (ret_val)