Fix unhandled NPE when sharing an image from ViewMediaActivity (#1111)
This commit is contained in:
parent
9c96dea890
commit
3f515025c2
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user