mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-02 08:23:00 +01:00
Fix potention NPE on video recording failures.
This commit is contained in:
committed by
Cody Henthorne
parent
845704b9fe
commit
549992c08a
@@ -161,7 +161,9 @@ class MediaCaptureFragment : Fragment(R.layout.fragment_container), CameraFragme
|
||||
|
||||
override fun onVideoCaptureError() {
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user