Fix unhandled NPE when sharing an image from ViewMediaActivity (#1111)
This commit is contained in:
parent
47fa775f21
commit
006300ede6
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue