Skip to content

Conversation

@StellarSand
Copy link
Contributor

@StellarSand StellarSand commented Nov 5, 2024

  • Use Material 3 components
  • Initial support for Material You
  • Updated gradle, dependencies, kotlin, java versions

Note

This is not a redesign.

Closes #132

@nguyenkims
Copy link
Collaborator

Thanks for the MR! Our team will review it and come back to you!


// Move cursor to the last character
binding.prefixEditText.setSelection(binding.prefixEditText.text.count())
binding.prefixEditText.setSelection(binding.prefixEditText.text!!.count())

Choose a reason for hiding this comment

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

If prefixEditText is ever null this will cause a crash. Could you update it to avoid it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry I have no idea why I made those changes in the first place. 😄

Choose a reason for hiding this comment

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

Hey, you added it because otherwise, it would cause a compilation error. Right now, reverting it makes the code fail to compile. The ideal approach would be to write it in a more null-safe way. For example, you could add a .orEmpty().

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

fun Context.getVersionName(): String {
val packageInfo = packageManager.getPackageInfo(packageName, PackageManager.GET_ACTIVITIES)
return packageInfo.versionName
return packageInfo.versionName!!

Choose a reason for hiding this comment

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

If versionName is ever null this will cause a crash. Could you update it to avoid it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed now :)

Choose a reason for hiding this comment

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

Same as above.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@vinnyperella
Copy link

Any update on 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.

Material design support

4 participants