Formatting
This commit is contained in:
@@ -67,7 +67,7 @@ fun Long.toUtcCalendar(): Calendar? {
|
||||
rawCalendar.get(Calendar.DAY_OF_MONTH),
|
||||
rawCalendar.get(Calendar.HOUR_OF_DAY),
|
||||
rawCalendar.get(Calendar.MINUTE),
|
||||
rawCalendar.get(Calendar.SECOND)
|
||||
rawCalendar.get(Calendar.SECOND),
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -92,7 +92,7 @@ fun Long.toLocalCalendar(): Calendar? {
|
||||
rawCalendar.get(Calendar.DAY_OF_MONTH),
|
||||
rawCalendar.get(Calendar.HOUR_OF_DAY),
|
||||
rawCalendar.get(Calendar.MINUTE),
|
||||
rawCalendar.get(Calendar.SECOND)
|
||||
rawCalendar.get(Calendar.SECOND),
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -116,7 +116,7 @@ fun Date.toRelativeString(
|
||||
difference < MILLISECONDS_IN_DAY.times(range) -> context.resources.getQuantityString(
|
||||
R.plurals.relative_time,
|
||||
days,
|
||||
days
|
||||
days,
|
||||
)
|
||||
else -> dateFormat.format(this)
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ object Hash {
|
||||
|
||||
private val chars = charArrayOf(
|
||||
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
|
||||
'a', 'b', 'c', 'd', 'e', 'f'
|
||||
'a', 'b', 'c', 'd', 'e', 'f',
|
||||
)
|
||||
|
||||
private val MD5 get() = MessageDigest.getInstance("MD5")
|
||||
|
||||
@@ -35,8 +35,8 @@ private suspend fun <T> Observable<T>.awaitOne(): T = suspendCancellableCoroutin
|
||||
override fun onCompleted() {
|
||||
if (cont.isActive) cont.resumeWithException(
|
||||
IllegalStateException(
|
||||
"Should have invoked onNext"
|
||||
)
|
||||
"Should have invoked onNext",
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
@@ -51,8 +51,8 @@ private suspend fun <T> Observable<T>.awaitOne(): T = suspendCancellableCoroutin
|
||||
cont.completeResume(token)
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
},
|
||||
),
|
||||
)
|
||||
}
|
||||
|
||||
@@ -80,6 +80,6 @@ fun <T> runAsObservable(
|
||||
}
|
||||
emitter.setCancellation { job.cancel() }
|
||||
},
|
||||
backpressureMode
|
||||
backpressureMode,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user