This commit is contained in:
Philipp Schaefer
2014-07-16 11:20:27 +02:00
parent 7c85e7247b
commit 4781ea9627
5 changed files with 21 additions and 6 deletions

View File

@ -100,7 +100,7 @@ public class IITC_UserLocation implements LocationListener, SensorEventListener
return mFollowing;
}
public void locate() {
public void locate(final boolean persistentZoom) {
// do not touch the javascript while iitc boots
if (mIitc.isLoading()) return;
@ -109,7 +109,8 @@ public class IITC_UserLocation implements LocationListener, SensorEventListener
mIitc.getWebView().loadJS("if(window.plugin && window.plugin.userLocation)"
+ "window.plugin.userLocation.locate("
+ location.getLatitude() + ", " + location.getLongitude() + ", " + location.getAccuracy() + ");");
+ location.getLatitude() + ", " + location.getLongitude() + ", "
+ location.getAccuracy() + ", " + persistentZoom + ");");
}
public void onStart() {