From 86a4ed3f0b173bd2a22a97fc4cd11d609570893d Mon Sep 17 00:00:00 2001 From: Geoffrey Goh Date: Wed, 23 Dec 2015 17:20:54 -0800 Subject: [PATCH] clear cache only during debug --- .../src/main/java/com/microsoft/codepush/react/CodePush.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/src/main/java/com/microsoft/codepush/react/CodePush.java b/android/app/src/main/java/com/microsoft/codepush/react/CodePush.java index 9f710ef..bd9fc21 100644 --- a/android/app/src/main/java/com/microsoft/codepush/react/CodePush.java +++ b/android/app/src/main/java/com/microsoft/codepush/react/CodePush.java @@ -203,7 +203,7 @@ public class CodePush { rollbackPackage(); } else { // Clear the React dev bundle cache so that new updates can be loaded. - if (!this.isDebugMode) { + if (this.isDebugMode) { clearReactDevBundleCache(); } // Mark that we tried to initialize the new update, so that if it crashes,