Ignore null value (Double.valueOf handles that correctly)

This commit is contained in:
fkloft 2015-01-22 17:56:27 +01:00
parent 8142544442
commit d6a0b1abb8

View File

@ -49,8 +49,6 @@ public class IITC_UserLocation implements CompassListener, LocationListener {
while (orientation > mOrientation + 180) while (orientation > mOrientation + 180)
orientation -= 360; orientation -= 360;
mOrientation = orientation; mOrientation = orientation;
} else {
mOrientation = 0;
} }
mIitc.getWebView().loadJS("if(window.plugin && window.plugin.userLocation)" mIitc.getWebView().loadJS("if(window.plugin && window.plugin.userLocation)"