forked from akai/readest
763b579c8f
On targetSdk 36, ACTION_PROCESS_TEXT handlers were hidden by Android 11+ package-visibility filtering — only auto-visible web browsers resolved the intent, so system-dictionary lookups landed in the OEM browser (VIVO/iQOO) even with a dictionary like Eudic installed. Add a <queries> declaration so dictionary apps are visible, and filter web browsers out of the handler set so an OEM browser that registers PROCESS_TEXT can't swallow the lookup: - no browser among handlers → unchanged implicit dispatch (keeps native Always) - browser + one dictionary → launch it directly (explicit component) - browser + several dictionaries → chooser excluding browsers, remembering the pick via EXTRA_CHOSEN_COMPONENT so later lookups go straight through - only a browser installed → report unavailable instead of opening it Routing is a pure, JUnit-tested decideLookupDispatch(). Adds get/clear lookup-dictionary commands + an Android-only reset row in the dictionary settings to switch the remembered app. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
42 lines
1.2 KiB
TOML
42 lines
1.2 KiB
TOML
[default]
|
|
description = "Default permissions for the plugin"
|
|
permissions = [
|
|
"allow-auth-with-safari",
|
|
"allow-auth-with-custom-tab",
|
|
"allow-copy-uri-to-path",
|
|
"allow-use-background-audio",
|
|
"allow-install-package",
|
|
"allow-set-system-ui-visibility",
|
|
"allow-get-status-bar-height",
|
|
"allow-get-sys-fonts-list",
|
|
"allow-intercept-keys",
|
|
"allow-lock-screen-orientation",
|
|
"allow-iap-is-available",
|
|
"allow-iap-initialize",
|
|
"allow-iap-fetch-products",
|
|
"allow-iap-purchase-product",
|
|
"allow-iap-restore-purchases",
|
|
"allow-get-system-color-scheme",
|
|
"allow-get-safe-area-insets",
|
|
"allow-get-screen-brightness",
|
|
"allow-set-screen-brightness",
|
|
"allow-get-external-sdcard-path",
|
|
"allow-open-external-url",
|
|
"allow-show-lookup-popover",
|
|
"allow-get-lookup-dictionary",
|
|
"allow-clear-lookup-dictionary",
|
|
"allow-select-directory",
|
|
"allow-get-storefront-region-code",
|
|
"allow-request-manage-storage-permission",
|
|
"allow-register-listener",
|
|
"allow-remove-listener",
|
|
"allow-check-permissions",
|
|
"allow-request-permissions",
|
|
"allow-checkPermissions",
|
|
"allow-requestPermissions",
|
|
"allow-set-sync-passphrase",
|
|
"allow-get-sync-passphrase",
|
|
"allow-clear-sync-passphrase",
|
|
"allow-is-sync-keychain-available",
|
|
]
|