管灌系统巡查员智能手机App
zuoxiao
2024-09-09 f163344ffeb1e699fa1a2dfb8a70055bb1b9be7e
app/src/main/java/com/dayu/pipirrapp/service/MyLocationService.java
@@ -87,7 +87,7 @@
        super.onCreate();
        createNativeLocation();
        createBDLocation();
//        createBDLocation();
    }
@@ -252,10 +252,10 @@
            if (locationManager != null) {
                locationManager.removeUpdates(listener);
            }
            if (mBDLocationClient != null) {
                mBDLocationClient.stop();
                mBDLocationClient.unRegisterLocationListener(mBDLocationListener);
            }
//            if (mBDLocationClient != null) {
//                mBDLocationClient.stop();
//                mBDLocationClient.unRegisterLocationListener(mBDLocationListener);
//            }
        } catch (Exception e) {
            CrashReport.postCatchedException(e);