|
|
@@ -116,7 +116,7 @@ public class BdLocationHelper {
|
|
|
@Override
|
|
|
public void onReceiveLocation(BDLocation location) {
|
|
|
try {
|
|
|
- if (System.currentTimeMillis() - oldTime < 5000) return;//防止过度
|
|
|
+ if (System.currentTimeMillis() - oldTime < 50000) return;//防止过度
|
|
|
if (locationEntity == null)
|
|
|
locationEntity = new LocationEntity();
|
|
|
locationEntity.clear();
|
|
|
@@ -218,9 +218,10 @@ public class BdLocationHelper {
|
|
|
return locationEntity == null ? "" : locationEntity.getDistrict();
|
|
|
}
|
|
|
|
|
|
- public boolean locationOk(){
|
|
|
+ public boolean locationOk() {
|
|
|
return locationEntity == null ? false : locationEntity.isLocationOk();
|
|
|
}
|
|
|
+
|
|
|
public boolean isLocationUpdate() {
|
|
|
return true;
|
|
|
}
|