mirror of https://github.com/tauri-apps/tauri
fix(core): requestPermissions not resolving on Android (#10988)
the checkPermissions command is also a PermissionCallback, and the annotation check is incorrectly ignoring that fact, so the requestPermissions is never resolved for the geolocation plugin
This commit is contained in:
parent
63649d82d2
commit
00182ebf89
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"tauri": patch:bug
|
||||
---
|
||||
|
||||
Fix `requestPermissions` not resolving on Android.
|
|
@ -143,9 +143,13 @@ class PluginHandle(private val manager: PluginManager, val name: String, val ins
|
|||
val command = method.getAnnotation(Command::class.java) ?: continue
|
||||
val methodMeta = CommandData(method, command)
|
||||
commands[method.name] = methodMeta
|
||||
} else if (method.isAnnotationPresent(ActivityCallback::class.java)) {
|
||||
}
|
||||
|
||||
if (method.isAnnotationPresent(ActivityCallback::class.java)) {
|
||||
startActivityCallbackMethods[method.name] = method
|
||||
} else if (method.isAnnotationPresent(PermissionCallback::class.java)) {
|
||||
}
|
||||
|
||||
if (method.isAnnotationPresent(PermissionCallback::class.java)) {
|
||||
permissionCallbackMethods[method.name] = method
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue