don't try to draw location while iitc boots

This commit is contained in:
Philipp Schaefer 2013-09-02 21:50:43 +02:00
parent c262a2e1d6
commit c5dfef0830

View File

@ -554,11 +554,14 @@ public class IITC_Mobile extends Activity {
// throw away all positions with accuracy > 100 meters
// should avoid gps glitches
if (loc.getAccuracy() < 100) {
// do not touch the javascript while iitc boots
if (findViewById(R.id.imageLoading).getVisibility() == View.GONE) {
mIitcWebView.loadUrl("javascript: "
+ "window.plugin.userLocation.updateLocation( "
+ loc.getLatitude() + ", " + loc.getLongitude() + ");");
}
}
}
public void toggleFullscreen() {
if (mFullscreenMode) {