Misc small kotlin based refactors

Java file here because it uses kotlin function which returns non null
This commit is contained in:
Yevhen Babiichuk (DustDFG) 2026-01-11 13:51:34 +02:00
parent 183df8839a
commit d84852c920
9 changed files with 16 additions and 26 deletions

View file

@ -41,11 +41,7 @@ fun View.animate(
execOnEnd: Runnable? = null
) {
if (DEBUG) {
val id = try {
resources.getResourceEntryName(id)
} catch (e: Exception) {
id.toString()
}
val id = runCatching { resources.getResourceEntryName(id) }.getOrDefault(id.toString())
val msg = String.format(
"%8s → [%s:%s] [%s %s:%s] execOnEnd=%s", enterOrExit,
javaClass.simpleName, id, animationType, duration, delay, execOnEnd