cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [23/34] git commit: Fix updating while in an app - reset mappings upon push received
Date Tue, 06 May 2014 19:29:37 GMT
Fix updating while in an app - reset mappings upon push received


Project: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/commit/905d837c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/tree/905d837c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/diff/905d837c

Branch: refs/heads/master
Commit: 905d837c70fd08483cb0b1a1308e71fd6b9fc587
Parents: 1d6b5fb
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Thu Mar 20 23:53:14 2014 -0700
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Thu Mar 20 23:53:14 2014 -0700

----------------------------------------------------------------------
 harness-push/src/android/Push.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-app-harness/blob/905d837c/harness-push/src/android/Push.java
----------------------------------------------------------------------
diff --git a/harness-push/src/android/Push.java b/harness-push/src/android/Push.java
index 1ac04b1..1e36b6b 100644
--- a/harness-push/src/android/Push.java
+++ b/harness-push/src/android/Push.java
@@ -18,6 +18,8 @@ import org.apache.cordova.CallbackContext;
 import org.apache.cordova.Config;
 import org.apache.cordova.CordovaArgs;
 import org.apache.cordova.CordovaPlugin;
+import org.apache.cordova.urlremap.UrlRemap;
+
 import org.json.JSONException;
 import org.json.JSONObject;
 
@@ -98,6 +100,7 @@ public class Push extends CordovaPlugin {
     }
 
     private void restartAppHarness() {
+        ((UrlRemap)webView.pluginManager.getPlugin("UrlRemap")).resetMappings();
         webView.loadUrlIntoView(Config.getStartUrl(), false);
     }
 


Mime
View raw message