reformat code

This commit is contained in:
5ec1cff
2024-07-13 14:06:35 +08:00
parent 83ba59279c
commit bc7b75999c

View File

@@ -4,7 +4,6 @@ import android.os.Binder
import android.os.IBinder
import android.os.Parcel
open class BinderInterceptor : Binder() {
sealed class Result
data object Skip : Result()
@@ -91,7 +90,6 @@ open class BinderInterceptor : Binder() {
reply!!.writeInt(3)
reply.writeInt(result.code)
reply.writeLong(result.reply.dataSize().toLong())
println("override reply code=${result.code} size=${result.reply.dataSize()}")
reply.appendFrom(result.reply, 0, result.reply.dataSize())
result.reply.recycle()
}
@@ -101,8 +99,7 @@ open class BinderInterceptor : Binder() {
reply.appendFrom(result.data, 0, result.data.dataSize())
result.data.recycle()
}
else -> {}
}
return true
}
}
}