mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-16 02:44:33 +08:00
make isFirstRun a precondition of clearing pending updates in notifyApplicationReady
This commit is contained in:
@@ -539,7 +539,10 @@ public class CodePush {
|
||||
|
||||
@ReactMethod
|
||||
public void notifyApplicationReady(Promise promise) {
|
||||
removePendingUpdate();
|
||||
if (didUpdate) {
|
||||
removePendingUpdate();
|
||||
}
|
||||
|
||||
promise.resolve("");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user