Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language switcher in Preferences #38

Closed
wants to merge 4 commits into from
Closed

Conversation

dnno
Copy link
Contributor

@dnno dnno commented Aug 16, 2023

See discussion here: #27

Inspirations mainly from here:

https://developer.android.com/guide/topics/resources/app-languages

Official documentation:

https://developer.android.com/guide/topics/resources/app-languages

Things to consider:
Is it risky to update appcompat to a newer version when it was transitively imported with version 1.5.0 before? I see no obvious errors, but worth thinking about.

@@ -69,6 +71,10 @@ private static Subsonic getSubsonicClient() {
String salt = Preferences.getSalt();
boolean isLowSecurity = Preferences.isLowScurity();

if (Preferences.getLocale() != null) {
AppCompatDelegate.setApplicationLocales(LocaleListCompat.create(Preferences.getLocale()));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would assume that is not the right place to put this...

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, but it's okay. Don't worry!

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.

None yet

2 participants