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

refactor(browse): lint #17805

Merged
merged 2 commits into from
Jan 14, 2025
Merged

refactor(browse): lint #17805

merged 2 commits into from
Jan 14, 2025

Conversation

david-allison
Copy link
Member

Fixes a few IDE lint warnings (.isEmpty() needed a [Mutable]Map, rather than a HashMap)

I did a very quick test of the saved searched functionality, and trusting CI for the rest

Checklist

  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
  • UI Changes: You have tested your change using the Google Accessibility Scanner

@lukstbit lukstbit added Needs Author Reply Waiting for a reply from the original author and removed Needs Review labels Jan 13, 2025
@david-allison david-allison added Needs Review cleanup Non functional change that would improve the code readability and removed Needs Author Reply Waiting for a reply from the original author labels Jan 13, 2025
@david-allison
Copy link
Member Author

Glad I did this, I didn't realize Android Studio lint wasn't working correctly for me, sorry for the hassle.

Copy link
Member

@lukstbit lukstbit left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@@ -858,7 +858,6 @@ open class CardBrowser :
Timber.w(e, "Error Opening Note Editor")
showSnackbar(
R.string.multimedia_editor_something_wrong,
Snackbar.LENGTH_LONG,
Copy link
Member

Choose a reason for hiding this comment

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

showSnackbar() could be written in one row now.

Copy link
Member Author

@david-allison david-allison Jan 14, 2025

Choose a reason for hiding this comment

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

lint likes this style, so additional lines can be added with a single line change

@lukstbit lukstbit added Needs Second Approval Has one approval, one more approval to merge and removed Needs Review labels Jan 14, 2025
This causes the following error as Android Studio
doesn't have SQL syntax highlighting

```
id, name or spec expected, got 'select min(due)'
```

https://issuetracker.google.com/issues/377733398
Copy link
Member

@mikehardy mikehardy left a comment

Choose a reason for hiding this comment

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

LGTM

@mikehardy mikehardy added this pull request to the merge queue Jan 14, 2025
@mikehardy mikehardy added Pending Merge Things with approval that are waiting future merge (e.g. targets a future release, CI wait, etc) and removed Needs Second Approval Has one approval, one more approval to merge labels Jan 14, 2025
Merged via the queue into ankidroid:main with commit 435531f Jan 14, 2025
9 checks passed
@github-actions github-actions bot removed the Pending Merge Things with approval that are waiting future merge (e.g. targets a future release, CI wait, etc) label Jan 14, 2025
@github-actions github-actions bot added this to the 2.21 release milestone Jan 14, 2025
@david-allison david-allison deleted the refactor-minor branch January 16, 2025 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Non functional change that would improve the code readability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants