Commit a465abc7 authored by wanglei's avatar wanglei

...

parent 20af04a0
......@@ -232,6 +232,7 @@ class LocationMapActivity : BaseActivity<ActivityLocationMapBinding>(), OnMapRea
}
}
locationPresenter.refreshLocationCallBack = {
toast("updata ${it?.latitude} ${it?.longitude}")
resetMyLocation(it, false, false)
}
}
......
......@@ -7,10 +7,7 @@ import androidx.lifecycle.LifecycleCoroutineScope
import com.base.locationsharewhite.BuildConfig
import com.base.locationsharewhite.location.LocationPositionUtils.uploadMyLocation
import com.base.locationsharewhite.map.MapUtils.getLatLngByLocationManager
import com.base.locationsharewhite.utils.AppPreferences
import com.base.locationsharewhite.utils.BatteryUtils.getBatteryLevel
import com.base.locationsharewhite.utils.LogEx
import com.base.locationsharewhite.utils.ToastUtils.toast
import com.google.android.gms.location.FusedLocationProviderClient
import com.google.android.gms.location.LocationServices
import com.google.android.gms.maps.model.LatLng
......@@ -62,7 +59,7 @@ class LocationPresenter(
}
uploadMyLocation(latLng, power)
}
delay(30 * 1000L)
delay(10 * 1000L)
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment