Skip to content

Conversation

@defkorean
Copy link
Contributor

@defkorean defkorean commented Jan 2, 2026

Purpose / Description

Cleans up warnings found in NoteEditorFragment.kt by replacing substring methods with specific use cases (i.e dropLast and take)

Fixes

Approach

Cleaned up syntax warnings in this file (as of v2.23.2) using suggestions by Android Studio as well as reading documentation to check if functionality would remain the same from original code. Although I think there may be an off by one error using dropLast, but would like suggestions for line 883.

How Has This Been Tested?

Emulated on a Pixel 9 Pro API 36.0, no crashes seen

Checklist

Please, go through these checks before submitting the PR.

  • 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

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.

Thanks!

@lukstbit lukstbit added the Needs Second Approval Has one approval, one more approval to merge label Jan 3, 2026
Copy link
Member

@david-allison david-allison left a comment

Choose a reason for hiding this comment

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

Cheers!

@david-allison david-allison added this pull request to the merge queue Jan 3, 2026
Merged via the queue into ankidroid:main with commit fe2d604 Jan 3, 2026
18 checks passed
@github-actions github-actions bot added this to the 2.24 release milestone Jan 3, 2026
@github-actions github-actions bot removed the Needs Second Approval Has one approval, one more approval to merge label Jan 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants