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

Fixes #300 Where Locale is set to Zulu when settings are opened #310

Merged
merged 1 commit into from Apr 8, 2020
Merged

Fixes #300 Where Locale is set to Zulu when settings are opened #310

merged 1 commit into from Apr 8, 2020

Conversation

bitmold
Copy link
Collaborator

@bitmold bitmold commented Apr 8, 2020

The locale to the app was set to isiZulu (zu) when the Settings screen is opened even if the user didn't explicitly set another language. This is because of a line in Languages.java in a loop for each Locale: config.locale = locale is assigned to the Activity's Configuration object.

This assignment is not necessary and occurs for each Locale supported by the app. The reason the locale is always set to isiZulu because zu is the last locale alphabetically included in Orbot.

Bug #300 says that only context menu text is changed to isiZulu because Orbot doesn't have any isiZulu localization, so only the Android context menu changes. If more isiZulu localization was included in Orbot, other parts of the app would have been effected too. This bug is for every language supported in Orbot, any time you open the settings and do not explicitly set a locale.

This PR removes the assignment statement causing the bug, and also removes some code that isn't used by the app anymore.

@n8fr8
Copy link
Member

n8fr8 commented Apr 8, 2020

Wow, I really hope this is finally the solution to this hilarious bug. THANK YOU!

@n8fr8 n8fr8 merged commit 8627989 into guardianproject:master Apr 8, 2020
@bitmold
Copy link
Collaborator Author

bitmold commented Apr 8, 2020

I'm confident it is :+)

@bitmold bitmold deleted the zulu_context_menu branch April 8, 2020 22:04
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