Closed Domi04151309 closed 4 years ago
Hi Dominik! Thank you very much for your contribution. There are some changes that I am comfortable with merging, but there are some that I would like to discuss with you. Let me do it commit by commit:
Apply suggestions of category "Kotlin"
*COMPLICATION_SUPPORTED_TYPES[complicationLocation.id]!!
with *COMPLICATION_SUPPORTED_TYPES.getValue(complicationLocation.id)
seems like a walid improvement. 👍 setComplication(complicationProviderInfo, selectedComplication!!.id)
with setComplication(complicationProviderInfo, selectedComplication?.id ?: return)
. I want the app to crash if selectedComplication
is null
because that shouldn't happen. I don't know how to handle that. Making this change would just hide potential problems.Remove unused resources
wear/src/main/res/layout/activity_face_picker.xml
should not be deleted. There is a mistake in the FacePickerActivity
. setContentView(R.layout.activity_config)
should be replaced with setContentView(R.layout.activity_face_picker)
.Prevent creation of synthetic accessor
If you could update these things I would be happy to merge it.
Again, thanks a lot for your contribution!
Thanks for your suggestions. Here is an article about synthetic accessors. In short: Accessing private methods or fields in Java from nested or anonymous inner classes results in the creation of synthetic accessor methods.
Furthermore, I wanted to add that the use of Dependencies.kt
makes it hard to keep track of newer versions.
Oh, I missed that the adapter is being accessed inside ProviderInfoRetriever.OnProviderInfoReceivedCallback
object.
Dependencies.kt
helps a lot in a multi-module setup. But you are right, in this case, it doesn't help.
This pull request applies optimizations suggested by the linter built into Android Studio.