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 47fa775f21
commit 006300ede6

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.") Log.e(TAG, "Error loading temporary media.")
} }
override fun onPrepareLoad(placeHolderDrawable: Drawable) { } override fun onPrepareLoad(placeHolderDrawable: Drawable?) { }
}) })
shareFile(file, "image/png") shareFile(file, "image/png")