Update dependencies

This commit is contained in:
Mygod
2020-08-18 04:20:50 +08:00
parent 1b1fe33884
commit 2989094efd
6 changed files with 8 additions and 9 deletions

View File

@@ -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)
}

View File

@@ -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()

View File

@@ -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 {