From 826ec47f60a09e624fec55f15b97340430990516 Mon Sep 17 00:00:00 2001 From: sekaiacg Date: Sat, 4 Dec 2021 20:10:02 +0800 Subject: [PATCH] custom theme: Fix the install custom theme Change-Id: I639bfdac46cbe5a0d9760d1b62fd5f9875b63994 --- twrpinstall/twinstall.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twrpinstall/twinstall.cpp b/twrpinstall/twinstall.cpp index e1f84150..7975a978 100755 --- a/twrpinstall/twinstall.cpp +++ b/twrpinstall/twinstall.cpp @@ -354,7 +354,7 @@ int TWinstall_zip(const char* path, int* wipe_cache, bool check_for_digest) { } else { std::string binary_name("ui.xml"); ZipEntry64 binary_entry; - if (FindEntry(Zip, binary_name, &binary_entry) != 0) { + if (FindEntry(Zip, binary_name, &binary_entry) == 0) { LOGINFO("TWRP theme zip\n"); ret_val = Install_Theme(path, Zip); } else {