Dispatch host mainExecutor callbacks through the main looper
This commit is contained in:
1 parent
f385d3dc5e
commit
0340a59b15
1 file changed
+1
@@ -22,6 +22,7 @@ open class Context {
|
||||
const val RECEIVER_NOT_EXPORTED = 4
|
||||
}
|
||||
val packageName = "com.utun.chat"
|
||||
val mainExecutor = java.util.concurrent.Executor { task -> android.os.Handler(android.os.Looper.getMainLooper()).post(task) }
|
||||
var cacheDir = File(System.getProperty("java.io.tmpdir"), "utun-router-host-cache")
|
||||
val contentResolver = ContentResolver()
|
||||
var vibrator: Vibrator? = Vibrator()
|
||||
|
||||
Reference in new issue
Block a user