[3.4.0-map-sdk] code tyle
This commit is contained in:
@@ -64,15 +64,11 @@ class GDLocationClient private constructor() : AMapLocationListener,
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
if (mLocationClient != null) {
|
||||
mLocationClient.startLocation()
|
||||
}
|
||||
mLocationClient.startLocation()
|
||||
}
|
||||
|
||||
override fun stop() {
|
||||
if (mLocationClient != null) {
|
||||
mLocationClient.stopLocation()
|
||||
}
|
||||
mLocationClient.stopLocation()
|
||||
}
|
||||
|
||||
override fun onLocationChanged(aMapLocation: AMapLocation) {
|
||||
@@ -170,7 +166,7 @@ class GDLocationClient private constructor() : AMapLocationListener,
|
||||
}
|
||||
|
||||
companion object {
|
||||
val gdLocationClient by lazy(LazyThreadSafetyMode.SYNCHRONIZED){
|
||||
val gdLocationClient by lazy(LazyThreadSafetyMode.SYNCHRONIZED) {
|
||||
GDLocationClient()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user