diff --git a/android/src/main/java/cn/reactnative/modules/update/UpdateContext.java b/android/src/main/java/cn/reactnative/modules/update/UpdateContext.java index b7c54b7..f27266d 100644 --- a/android/src/main/java/cn/reactnative/modules/update/UpdateContext.java +++ b/android/src/main/java/cn/reactnative/modules/update/UpdateContext.java @@ -105,7 +105,7 @@ public class UpdateContext { SharedPreferences.Editor editor = sp.edit(); editor.putString("currentVersion", hashName); if (lastVersion != null) { - editor.putString("lastVersion", hashName); + editor.putString("lastVersion", lastVersion); } editor.putBoolean("firstTime", true); editor.putBoolean("firstTimeOk", false);