mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-11 00:00:05 +08:00
Add onReset() to GeoBroker.
This commit is contained in:
@@ -141,6 +141,14 @@ public class GeoBroker extends Plugin {
|
|||||||
this.gpsListener = null;
|
this.gpsListener = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Called when the view navigates.
|
||||||
|
* Stop the listeners.
|
||||||
|
*/
|
||||||
|
public void onReset() {
|
||||||
|
this.onDestroy();
|
||||||
|
}
|
||||||
|
|
||||||
public JSONObject returnLocationJSON(Location loc) {
|
public JSONObject returnLocationJSON(Location loc) {
|
||||||
JSONObject o = new JSONObject();
|
JSONObject o = new JSONObject();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user