custom theme: fix libziparchive loading of custom themes
Change-Id: Ia23a9dcd24fcbb61cb5e1df366a4325d20d777b2
diff --git a/twrp.cpp b/twrp.cpp
index 96446b2..5109914 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -85,15 +85,10 @@
DataManager::SetValue("tw_crypto_user_id", "0");
if (gui_startPage("decrypt", 1, 1) != 0) {
LOGERR("Failed to start decrypt GUI page.\n");
- } else {
- // Check for and load custom theme if present
- TWFunc::check_selinux_support();
- gui_loadCustomResources();
}
}
} else if (datamedia) {
PartitionManager.Update_System_Details();
- TWFunc::check_selinux_support();
if (tw_get_default_metadata(DataManager::GetSettingsStoragePath().c_str()) != 0) {
LOGINFO("Failed to get default contexts and file mode for storage files.\n");
} else {
@@ -221,6 +216,9 @@
#endif
Decrypt_Page(skip_decryption, datamedia);
+ // Check for and load custom theme if present
+ TWFunc::check_selinux_support();
+ gui_loadCustomResources();
PartitionManager.Output_Partition_Logging();
// Fixup the RTC clock on devices which require it