ソースを参照

build.gradle修改

niusongtao@dl-cg.com 5 年 前
コミット
e1ebc4f6bb

+ 1 - 1
base_library/src/main/java/com/mgtech/base_library/util/GoogleLocationUtil.java

@@ -106,7 +106,6 @@ public class GoogleLocationUtil{
     public void stopLocation(){
         if (locationManager !=null)
             locationManager.removeUpdates(myLocationListener);
-
     }
 
 
@@ -178,6 +177,7 @@ public class GoogleLocationUtil{
 
         locationManager.requestLocationUpdates(provider, MIN_TIME, MIN_DISTANCE,myLocationListener);
 
+
 //        locationManager.requestLocationUpdates(provider, MIN_TIME, MIN_DISTANCE,listeners[0]);
 //        locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, MIN_TIME, MIN_DISTANCE,listeners[0]);
 //        locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, MIN_TIME, MIN_DISTANCE,listeners[1]);