Allow manual sending of scheduled messages

This commit is contained in:
Moez Bhatti
2018-06-27 12:25:19 -04:00
parent 61c8ca17e8
commit d3ceec01fd
13 changed files with 89 additions and 237 deletions
@@ -18,10 +18,13 @@
*/
package com.moez.QKSMS.util
import timber.log.Timber
fun <T> tryOrNull(body: () -> T?): T? {
return try {
body()
} catch (e: Exception) {
Timber.w(e)
null
}
}