don't try to draw location while iitc boots
This commit is contained in:
parent
c262a2e1d6
commit
c5dfef0830
@ -554,11 +554,14 @@ public class IITC_Mobile extends Activity {
|
|||||||
// throw away all positions with accuracy > 100 meters
|
// throw away all positions with accuracy > 100 meters
|
||||||
// should avoid gps glitches
|
// should avoid gps glitches
|
||||||
if (loc.getAccuracy() < 100) {
|
if (loc.getAccuracy() < 100) {
|
||||||
|
// do not touch the javascript while iitc boots
|
||||||
|
if (findViewById(R.id.imageLoading).getVisibility() == View.GONE) {
|
||||||
mIitcWebView.loadUrl("javascript: "
|
mIitcWebView.loadUrl("javascript: "
|
||||||
+ "window.plugin.userLocation.updateLocation( "
|
+ "window.plugin.userLocation.updateLocation( "
|
||||||
+ loc.getLatitude() + ", " + loc.getLongitude() + ");");
|
+ loc.getLatitude() + ", " + loc.getLongitude() + ");");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void toggleFullscreen() {
|
public void toggleFullscreen() {
|
||||||
if (mFullscreenMode) {
|
if (mFullscreenMode) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user