diff --git a/app/src/main/java/com/wmods/wppenhacer/xposed/core/devkit/UnobfuscatorCache.java b/app/src/main/java/com/wmods/wppenhacer/xposed/core/devkit/UnobfuscatorCache.java index 77b84091..802c60b4 100644 --- a/app/src/main/java/com/wmods/wppenhacer/xposed/core/devkit/UnobfuscatorCache.java +++ b/app/src/main/java/com/wmods/wppenhacer/xposed/core/devkit/UnobfuscatorCache.java @@ -42,7 +42,11 @@ public UnobfuscatorCache(Application app, XSharedPreferences shared) { long version = mShared.getLong("version", 0); long currentVersion = mApp.getPackageManager().getPackageInfo(mApp.getPackageName(), 0).getLongVersionCode(); long savedUpdateTime = mShared.getLong("updateTime", 0); - long lastUpdateTime = mApp.getPackageManager().getPackageInfo(BuildConfig.APPLICATION_ID, 0).lastUpdateTime; + long lastUpdateTime = savedUpdateTime; + try { + lastUpdateTime = mApp.getPackageManager().getPackageInfo(BuildConfig.APPLICATION_ID, 0).lastUpdateTime; + } catch (Exception ignored) { + } if (version != currentVersion || savedUpdateTime != lastUpdateTime) { mShared.edit().clear().commit(); mShared.edit().putLong("version", currentVersion).commit(); diff --git a/changelog.txt b/changelog.txt index f7d9c3c3..66dbba5f 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,13 +1,4 @@ -[ATENÇÃO] -* This is a test version, I'm changing the bridge to service and testing the battery optimization features to open WhatsApp faster +[WHATSAPP] +* Fixed the lag when starting WhatsApp (When updating WAE it will still take a few seconds to save the cache of obfuscated strings, but after that the subsequent openings will be much faster). -[WA ENHANCER] -* Update translations -* Centralized home page - -[BUBBLE COLORS] -* Fix colors - -[SYSTEM FRAMEWORK] -* Works with Hide My App list (reboot device after update)