Added color copy/paste, better size and color text selection

This commit is contained in:
Tommaso Berlose
2021-05-07 17:19:23 +02:00
parent 1ac53e09a8
commit 5d07cc8d73
52 changed files with 460 additions and 75 deletions

View File

@ -265,3 +265,11 @@ fun View.setOnSingleClickListener(l: View.OnClickListener) {
fun View.setOnSingleClickListener(l: (View) -> Unit) {
setOnClickListener(OnSingleClickListener(l))
}
fun ignoreExceptions(function: () -> Unit) = run {
try {
function.invoke()
} catch (ex: Exception) {
ex.printStackTrace()
}
}