pockethub / PocketHub

PocketHub Android App
Apache License 2.0
9.39k stars 3.46k forks source link

Make Target drawable methods nullable as per the Picasso Javadoc #1185

Closed veyndan closed 6 years ago

veyndan commented 6 years ago

Going to a repository page crashes the app and this fixes it.

Picasso hadn't added @nullable annotations to their Target methods, so Kotlin crashes the app as null is being passed to a method which requires non nullability. I've sent a PR to Picasso in attempt to fix this issue for future uses of Picasso#Target (square/picasso#1825).