From 6192319f8cf4e64ff3f59eff9fda630412a6fbf9 Mon Sep 17 00:00:00 2001 From: Braden Shepherdson Date: Mon, 24 Sep 2012 14:20:36 -0400 Subject: [PATCH] Add onReset() to GeoBroker. --- framework/src/org/apache/cordova/GeoBroker.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/framework/src/org/apache/cordova/GeoBroker.java b/framework/src/org/apache/cordova/GeoBroker.java index d3bf6b34..5b0714cd 100755 --- a/framework/src/org/apache/cordova/GeoBroker.java +++ b/framework/src/org/apache/cordova/GeoBroker.java @@ -141,6 +141,14 @@ public class GeoBroker extends Plugin { this.gpsListener = null; } + /** + * Called when the view navigates. + * Stop the listeners. + */ + public void onReset() { + this.onDestroy(); + } + public JSONObject returnLocationJSON(Location loc) { JSONObject o = new JSONObject();