Skip to content

Conversation

@Lamartio
Copy link
Contributor

@Lamartio Lamartio commented Aug 5, 2019

No description provided.

Copy link
Collaborator

@jeffreydelooff jeffreydelooff left a comment

Choose a reason for hiding this comment

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

Are the launcher icons needed?

override fun putFloat(key: String?, value: Float): SharedPreferences.Editor = put(key, value)

override fun putString(key: String?, value: String?): SharedPreferences.Editor = put(key, value)
override fun putString(key: String?, value: String?): SharedPreferences.Editor = put(key, value!!)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can't value be non null then? Otherwise don't force unwrap?

Copy link
Contributor Author

@Lamartio Lamartio Sep 9, 2019

Choose a reason for hiding this comment

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

At the moment the lib anticipates a value to be non-null whenever it got requested. When requesting you always should check wether there is a value first.

I got some feedback on the and I would like to refactor to 'Maybe'. But that would be a new PR.

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.

2 participants