mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 02:12:58 +08:00
Add onReset() to GeoBroker.
This commit is contained in:
parent
20c885418e
commit
6192319f8c
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user