Misc small kotlin based refactors
Java file here because it uses kotlin function which returns non null
This commit is contained in:
parent
183df8839a
commit
d84852c920
9 changed files with 16 additions and 26 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue