1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 12:11:39 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Prevent some repeated actions

This commit is contained in:
sunnylqm
2021-07-29 00:50:48 +08:00
parent dba4a98fd0
commit f4c62cc3d1
2 changed files with 37 additions and 2 deletions

View File

@@ -154,7 +154,7 @@ public class UpdateContext {
String lastVersion = getCurrentVersion();
SharedPreferences.Editor editor = sp.edit();
editor.putString("currentVersion", hash);
if (lastVersion != null) {
if (lastVersion != null && lastVersion != hash) {
editor.putString("lastVersion", lastVersion);
}
editor.putBoolean("firstTime", true);