add toast if video file creation failed

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2022-09-30 12:10:55 +02:00 committed by Marcel Hibbe (Rebase PR Action)
parent fe1f02eb2f
commit 387cb63ce7

View file

@ -3290,6 +3290,7 @@ class ChatController(args: Bundle) :
)
File("$outputDir/$videoName$VIDEO_SUFFIX")
} catch (e: IOException) {
Toast.makeText(context, R.string.nc_common_error_sorry, Toast.LENGTH_LONG).show()
Log.e(TAG, "error while creating video file", e)
null
}