mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-10 06:14:10 +01:00
use Log.error instead of e.printstacktrace()
Signed-off-by: Giacomo Pacini <giacomopacini98@gmail.com>
This commit is contained in:
parent
e0024e54f4
commit
7542b310e0
@ -1659,7 +1659,8 @@ class ChatActivity :
|
||||
retriever.release() // Always release the retriever to free resources
|
||||
(durationStr?.toIntOrNull() ?: 0 )/ 1000 // Convert to int (seconds)
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
Log.e(TAG, "An exception occurred while computing " +
|
||||
"voice message duration for " + filename, e)
|
||||
0
|
||||
}
|
||||
adapter?.update(curMsg)
|
||||
@ -1673,7 +1674,8 @@ class ChatActivity :
|
||||
retriever.release() // Always release the retriever to free resources
|
||||
(durationStr?.toIntOrNull() ?: 0 )/ 1000 // Convert to int (seconds)
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
Log.e(TAG, "An exception occurred while computing " +
|
||||
"voice message duration for " + filename, e)
|
||||
0
|
||||
}
|
||||
adapter?.update(curMsg)
|
||||
|
Loading…
Reference in New Issue
Block a user