Skip to content

Commit

Permalink
gui: Remade theme apply mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
rxuglr committed Mar 16, 2023
1 parent cb27a86 commit 5012e0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
1 change: 0 additions & 1 deletion gui/action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,6 @@ int GUIAction::decrypt(std::string arg __unused)
#ifdef SHRP_EXPRESS
Express::init();
SHRP::handleLock();
GUIAction::reload("dummy");
#endif
#endif
}
Expand Down
13 changes: 3 additions & 10 deletions twrp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,6 @@ static void Decrypt_Page(bool SkipDecryption, bool datamedia) {
gui_loadCustomResources();
}
}
#ifdef SHRP_EXPRESS
else {
LOGINFO("Request a reload to apply shrp theme");
PageManager::RequestReload();
}
} if (DataManager::GetIntValue(TW_IS_ENCRYPTED) == 0) {
LOGINFO("Request a reload to apply shrp theme");
PageManager::RequestReload();
#endif
} else if (datamedia) {
PartitionManager.Update_System_Details();
TWFunc::check_selinux_support();
Expand Down Expand Up @@ -477,7 +468,9 @@ int main(int argc, char **argv) {
TWFunc::checkforapp(); //Checking compatibility for TWRP app

// Launch the main GUI
gui_start();
PageManager::RequestCustomReload("main");
gui_startPage("dasboard", 1, 0);
//gui_start();
delete adb_bu_fifo;
TWFunc::Update_Intent_File(startup.Get_Intent());
reboot();
Expand Down

0 comments on commit 5012e0a

Please sign in to comment.