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

fix: the description language set to bug by default when uploading image in nearby #6221

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yuvraj-coder1
Copy link
Contributor

Description (required)

Fixes #6191

Removed the hardcoded "bug" string set as the default language when uploading an image in the Nearby feature. Now, the app correctly selects the user's default language instead.

Tests performed (required)

Tested ProdDebug on vivo2334 with API level 35.

Screenshots (for UI changes only)

WhatsApp.Video.2025-02-26.at.15.14.32_b30fbbcf.mp4

@@ -15,7 +16,7 @@ class ResultTuple {
}

constructor() {
language = "bug" // Basa Ugi language - TODO Respect the `Default description language` setting.
language = Locale.getDefault().language
Copy link
Member

Choose a reason for hiding this comment

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

Please use the language configured in Settings>Default description language
Thank you!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so i am trying to use context to access the sharedpreference and get the "descriptionDefaultLanguagePref" key but i am not able get the context. i tried getting the context in NearbyResultItem class through dependency injection but it was coming null, can you help me with this.

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.

Respect "Default description language" (currently default value is set to "bug")
2 participants