[状态栏]修正GPS权限授予时的处理逻辑
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user