Skip to content

Two bug fixes for per-app locale support#487

Open
thomasbuilds wants to merge 2 commits intoGrapheneOS:mainfrom
thomasbuilds:main
Open

Two bug fixes for per-app locale support#487
thomasbuilds wants to merge 2 commits intoGrapheneOS:mainfrom
thomasbuilds:main

Conversation

@thomasbuilds
Copy link
Copy Markdown

Repo: fix inverted isEmpty check for per-app locale split selection

The merge of per-app locales into the global locale set was guarded by !pkgSpecificLocales.isEmpty, so it only ran when the list was empty. Per-app language preferences had no effect on language split APK selection.

PackageStates: register locale-change receiver without package data scheme

ACTION_APPLICATION_LOCALE_CHANGED carries no package: data URI. Registering it in an IntentFilter with addDataScheme("package") caused Android to drop the broadcast, so pkgSpecificLocales was never refreshed when the user changed per-app language settings.

@thomasbuilds thomasbuilds marked this pull request as ready for review May 2, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant