Github user spirann commented on a diff in the pull request:

    https://github.com/apache/cordova-android/pull/195#discussion_r34771734
  
    --- Diff: framework/src/org/apache/cordova/PluginManager.java ---
    @@ -381,15 +374,16 @@ public void onReset() {
         }
     
         Uri remapUri(Uri uri) {
    +        Uri remap = uri;
             for (CordovaPlugin plugin : this.pluginMap.values()) {
                 if (plugin != null) {
    -                Uri ret = plugin.remapUri(uri);
    +                Uri ret = plugin.remapUri(remap);
                     if (ret != null) {
    -                    return ret;
    +                    remap = ret;
                     }
                 }
             }
    -        return null;
    +        return uri.equals(remap) ? null : remap;
    --- End diff --
    
    It was the default behavior to return null if no plugins ends up remapping 
the uri. The only change is that it also return null if a plugin remap the uri 
to the same uri, because there's no need to act like there's a change when 
there's not (some plugins like JsHybuggerPlugin for example always remap every 
uri, to the same when no action is needed)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to