diff --git a/app/src/main/java/com/nextcloud/client/core/LocalConnection.kt b/app/src/main/java/com/nextcloud/client/core/LocalConnection.kt index 5e67d2418b73..1d58f3c9dd84 100644 --- a/app/src/main/java/com/nextcloud/client/core/LocalConnection.kt +++ b/app/src/main/java/com/nextcloud/client/core/LocalConnection.kt @@ -78,6 +78,7 @@ abstract class LocalConnection(protected val context: Context) : Se if (binder !is LocalBinder<*>) { throw IllegalStateException("Binder is not extending ${LocalBinder::class.java.name}") } + @Suppress("UNCHECKED_CAST") // Safe: type S guaranteed by service binding contract serviceBinder = binder as LocalBinder onBound(binder) }