mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-10-05 15:23:29 +01:00
Fix potention NPE on video recording failures.
This commit is contained in:
1 parent
845704b9fe
commit
549992c08a
1 file changed
+3
-1
+3
-1
@@ -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