From bd885823bd17ff5114c8a730d501dd62a69377c1 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Thu, 29 Sep 2022 15:12:53 +0100 Subject: [PATCH] removing unused import --- .../src/main/kotlin/app/dapk/st/navigator/Navigator.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/features/navigator/src/main/kotlin/app/dapk/st/navigator/Navigator.kt b/features/navigator/src/main/kotlin/app/dapk/st/navigator/Navigator.kt index 4fb7281..e52d34c 100644 --- a/features/navigator/src/main/kotlin/app/dapk/st/navigator/Navigator.kt +++ b/features/navigator/src/main/kotlin/app/dapk/st/navigator/Navigator.kt @@ -1,7 +1,6 @@ package app.dapk.st.navigator import android.app.Activity -import android.app.Instrumentation.ActivityResult import android.app.PendingIntent import android.content.Context import android.content.Intent @@ -82,7 +81,7 @@ data class MessageAttachment(val uri: AndroidUri, val type: MimeType) : Parcelab private companion object : Parceler { override fun create(parcel: Parcel): MessageAttachment { val uri = AndroidUri(parcel.readString()!!) - val type = when(parcel.readString()!!) { + val type = when (parcel.readString()!!) { "mimetype-image" -> MimeType.Image else -> throw IllegalStateException() }