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/gui.cpp b/gui/gui.cpp
index 5c7d27e..bb80632 100755
--- a/gui/gui.cpp
+++ b/gui/gui.cpp
@@ -799,7 +799,7 @@
{
std::string theme_path;
- theme_path = DataManager::GetSettingsStoragePath();
+ theme_path = DataManager::GetCurrentStoragePath();
if (!PartitionManager.Mount_Settings_Storage(false))
{
int retry_count = 5;
@@ -849,7 +849,7 @@
return -1;
}
- std::string theme_path = DataManager::GetSettingsStoragePath();
+ std::string theme_path = DataManager::GetCurrentStoragePath();
theme_path += TWFunc::Check_For_TwrpFolder() + "/theme/ui.zip";
// Check for a custom theme
if (TWFunc::Path_Exists(theme_path)) {