mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-08 09:18:39 +01:00
Fix potention NPE on video recording failures.
This commit is contained in:
committed by
Cody Henthorne
parent
845704b9fe
commit
549992c08a
+3
-1
@@ -161,7 +161,9 @@ class MediaCaptureFragment : Fragment(R.layout.fragment_container), CameraFragme
|
|||||||
|
|
||||||
override fun onVideoCaptureError() {
|
override fun onVideoCaptureError() {
|
||||||
Log.w(TAG, "Video capture error.")
|
Log.w(TAG, "Video capture error.")
|
||||||
Toast.makeText(requireContext(), R.string.MediaSendActivity_camera_unavailable, Toast.LENGTH_SHORT).show()
|
context?.let { context ->
|
||||||
|
Toast.makeText(context, R.string.MediaSendActivity_camera_unavailable, Toast.LENGTH_SHORT).show()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onGalleryClicked() {
|
override fun onGalleryClicked() {
|
||||||
|
|||||||
Reference in New Issue
Block a user