-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Non-static locale #21549
Non-static locale #21549
Conversation
Generated by 🚫 Danger |
📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
|
import org.wordpress.android.util.UrlUtils; | ||
|
||
import static org.wordpress.android.ui.reader.utils.ReaderUtils.getTagForSearchQuery; | ||
|
||
public class ReaderSearchLogic { | ||
private final ServiceCompletionListener mCompletionListener; | ||
|
||
private final LocaleManagerWrapper mLocaleManagerWrapper; | ||
private final PerAppLocaleManager mPerAppLocaleManager; |
Check notice
Code scanning / Android Lint
Nullable/NonNull annotation missing on field Note
Quality Gate failedFailed conditions |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #21549 +/- ##
=======================================
Coverage 39.48% 39.48%
=======================================
Files 2117 2117
Lines 99464 99464
Branches 15296 15296
=======================================
Hits 39269 39269
Misses 56714 56714
Partials 3481 3481 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 @nbradbury !
I have reviewed this PR as per the instructions (also tested it), everything works as expected, thanks for making this refactor! 🥇
Also, I see that this is failing SonarCloud Code Analysis due to duplication, but I'm thinking we can ignore that 🤞
Definitely can ignore that. 👍
@ParaskP7 You surprised me by reviewing this so quickly - thank you! |
😅 I would have been now or 2 weeks from now! 😅 |
This PR addresses this comment regarding
LocaleManager
by removingLocaleManager.getLanguage()
and replacing it withPerAppLocaleManager.getCurrentLocaleLanguageCode()
.@ParaskP7 I've asked for your review of this since you're familiar with the context, but there's no rush to get this merged. Also, I see that this is failing SonarCloud Code Analysis due to duplication, but I'm thinking we can ignore that 🤞