Skip to content
Permalink
Browse files

Fix Lint warnings

Caused by Artwork not implementing equals() (it is now a data class) and nullability of Uri.getAuthority()
  • Loading branch information...
ianhanniballake committed Jun 9, 2019
1 parent 7721b3a commit 4fafc5f677daef5b55dc140ef5b319c16ac32ac8
@@ -34,7 +34,7 @@ import java.util.Date
* Artwork's representation in Room
*/
@Entity(indices = [(Index(value = ["providerAuthority"]))])
class Artwork(
data class Artwork(
@field:TypeConverters(UriTypeConverter::class)
val imageUri: Uri
) {
@@ -62,7 +62,7 @@ class BrowseProviderFragment: Fragment(R.layout.browse_provider_fragment) {
}

val pm = requireContext().packageManager
val providerInfo = pm.resolveContentProvider(args.contentUri.authority, 0)
val providerInfo = pm.resolveContentProvider(args.contentUri.authority!!, 0)
?: run {
findNavController().popBackStack()
return

0 comments on commit 4fafc5f

Please sign in to comment.
You can’t perform that action at this time.