Fix unhandled NPE when sharing an image from ViewMediaActivity (#1111)

This commit is contained in:
Levi Bard 2019-03-07 21:21:21 +01:00 committed by Konrad Pozniak
parent 9c96dea890
commit 3f515025c2

View File

@ -272,11 +272,11 @@ class ViewMediaActivity : BaseActivity(), ViewImageFragment.PhotoActionsListener
}
}
override fun onBitmapFailed(errorDrawable: Drawable) {
override fun onBitmapFailed(errorDrawable: Drawable?) {
Log.e(TAG, "Error loading temporary media.")
}
override fun onPrepareLoad(placeHolderDrawable: Drawable) { }
override fun onPrepareLoad(placeHolderDrawable: Drawable?) { }
})
shareFile(file, "image/png")