Set data/recovery for Settings: complementary code
After https://gerrit.twrp.me/c/android_bootable_recovery/+/5670 some functions were not working properly, such as change TWRP folder and custom themes.
Signed-off-by: Fernando Oliveira <fernandoaju78@gmail.com>
Change-Id: Ifaa777e528a6ca68e628d1719ba6d232851d338d
(cherry picked from commit 25062d7904430cdb83e4b4eaf6db38715da88e49)
diff --git a/gui/pages.cpp b/gui/pages.cpp
index 8b9ce46..23d8e56 100755
--- a/gui/pages.cpp
+++ b/gui/pages.cpp
@@ -1505,7 +1505,7 @@
return 0;
mReloadTheme = false;
- theme_path = DataManager::GetSettingsStoragePath();
+ theme_path = DataManager::GetCurrentStoragePath();
if (PartitionManager.Mount_By_Path(theme_path.c_str(), 1) < 0) {
LOGERR("Unable to mount %s during gui_reload_theme function.\n", theme_path.c_str());
ret_val = 1;