Update dependencies
This commit is contained in:
@@ -441,7 +441,8 @@ class RootServer {
|
||||
val result = command.execute();
|
||||
{ output.pushResult(callback, result) }
|
||||
} catch (e: Throwable) {
|
||||
{ output.pushThrowable(callback, e) }
|
||||
val worker = { output.pushThrowable(callback, e) }
|
||||
worker
|
||||
} finally {
|
||||
cancellables.remove(callback)
|
||||
}
|
||||
@@ -463,7 +464,8 @@ class RootServer {
|
||||
output.flush()
|
||||
}
|
||||
} catch (e: Throwable) {
|
||||
{ output.pushThrowable(callback, e) }
|
||||
val worker = { output.pushThrowable(callback, e) }
|
||||
worker
|
||||
} finally {
|
||||
cancellables.remove(callback)
|
||||
}
|
||||
|
||||
@@ -195,7 +195,6 @@ sealed class TetherManager(protected val parent: TetheringFragment) : Manager(),
|
||||
var features = supportedFeatures
|
||||
if (features == 0L) yield(parent.getString(R.string.tethering_manage_wifi_no_features))
|
||||
else while (features != 0L) {
|
||||
@OptIn(ExperimentalStdlibApi::class)
|
||||
val bit = features.takeLowestOneBit()
|
||||
yield(WifiApManager.featureLookup(bit, true))
|
||||
features = features and bit.inv()
|
||||
|
||||
@@ -63,7 +63,7 @@ object WifiApCommands {
|
||||
@Parcelize
|
||||
@RequiresApi(28)
|
||||
class RegisterSoftApCallback : RootCommandChannel<SoftApCallbackParcel> {
|
||||
override fun create(scope: CoroutineScope) = scope.produce(capacity = capacity) {
|
||||
override fun create(scope: CoroutineScope) = scope.produce<SoftApCallbackParcel>(capacity = capacity) {
|
||||
val finish = CompletableDeferred<Unit>()
|
||||
val key = WifiApManager.registerSoftApCallback(object : WifiApManager.SoftApCallbackCompat {
|
||||
private fun push(parcel: SoftApCallbackParcel) = check(try {
|
||||
|
||||
Reference in New Issue
Block a user