[状态栏]修正GPS权限授予时的处理逻辑

This commit is contained in:
renwj
2022-09-07 10:19:57 +08:00
parent af9670e871
commit 4a129c2624

View File

@@ -57,7 +57,7 @@ internal class GpsImpl(ctx: Context): IFlow<GpsStatus>(ctx) {
PermissionUtils.requestAccessFineLocation(object : SimpleCallback {
override fun onGranted() {
Log.d(TAG,"权限: ${Manifest.permission.ACCESS_FINE_LOCATION} 被授予了....")
send(enabled = isLocationEnabled(), isGranted = false)
send(enabled = isLocationEnabled(), isGranted = true)
}
override fun onDenied() {