mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-02 12:16:55 +01:00
Use kotlin string builder
This commit is contained in:
parent
cd16d3f19b
commit
2bf36c74e3
@ -35,7 +35,7 @@ internal class MXOutboundSessionInfo(
|
|||||||
val sessionLifetime = System.currentTimeMillis() - creationTime
|
val sessionLifetime = System.currentTimeMillis() - creationTime
|
||||||
|
|
||||||
if (useCount >= rotationPeriodMsgs || sessionLifetime >= rotationPeriodMs) {
|
if (useCount >= rotationPeriodMsgs || sessionLifetime >= rotationPeriodMs) {
|
||||||
Timber.v("## needsRotation() : Rotating megolm session after " + useCount + ", " + sessionLifetime + "ms")
|
Timber.v("## needsRotation() : Rotating megolm session after $useCount, ${sessionLifetime}ms")
|
||||||
needsRotation = true
|
needsRotation = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ internal class ThumbnailExtractor @Inject constructor(
|
|||||||
thumbnail.recycle()
|
thumbnail.recycle()
|
||||||
outputStream.reset()
|
outputStream.reset()
|
||||||
} ?: run {
|
} ?: run {
|
||||||
Timber.e("Cannot extract video thumbnail at %s", attachment.queryUri.toString())
|
Timber.e("Cannot extract video thumbnail at ${attachment.queryUri}")
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Timber.e(e, "Cannot extract video thumbnail")
|
Timber.e(e, "Cannot extract video thumbnail")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user