Prevent Binder stub swallowing Exceptions
This commit is contained in:
@@ -66,7 +66,11 @@ object TetheringManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private object InPlaceExecutor : Executor {
|
private object InPlaceExecutor : Executor {
|
||||||
override fun execute(command: Runnable) = command.run()
|
override fun execute(command: Runnable) = try {
|
||||||
|
command.run()
|
||||||
|
} catch (e: Exception) {
|
||||||
|
Timber.w(e) // prevent Binder stub swallowing the exception
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user