Fixed ICS export
This commit is contained in:
parent
0286abc070
commit
0dd79e5ff8
1 changed files with 2 additions and 1 deletions
|
@ -420,7 +420,8 @@ class DetailChatRoomFragment : MasterFragment<ChatRoomDetailFragmentBinding, Cha
|
||||||
it.consume { content ->
|
it.consume { content ->
|
||||||
var path = content.filePath.orEmpty()
|
var path = content.filePath.orEmpty()
|
||||||
|
|
||||||
if (!File(path).exists()) {
|
if (path.isNotEmpty() && !File(path).exists()) {
|
||||||
|
Log.e("[Chat Message] File not found: $path")
|
||||||
(requireActivity() as MainActivity).showSnackBar(R.string.chat_room_file_not_found)
|
(requireActivity() as MainActivity).showSnackBar(R.string.chat_room_file_not_found)
|
||||||
} else {
|
} else {
|
||||||
if (path.isEmpty()) {
|
if (path.isEmpty()) {
|
||||||
|
|
Loading…
Reference in a new issue