diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/permalinks/DeferredPermalinkService.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/permalinks/DeferredPermalinkService.kt index 9aef373b22..966c8b8f1c 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/permalinks/DeferredPermalinkService.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/session/permalinks/DeferredPermalinkService.kt @@ -17,12 +17,12 @@ package org.matrix.android.sdk.api.session.permalinks /** - * Service to handle deferred links, e.g. when user open link to the room but the app is not installed yet + * Service to handle deferred links, e.g. when user open link to the room but the app is not installed yet. */ interface DeferredPermalinkService { /** - * Checks system clipboard for matrix.to links and returns first room link if any found + * Checks system clipboard for matrix.to links and returns first room link if any found. * @return first room link in clipboard or null if none is found */ fun getLinkFromClipBoard(): String? diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/permalinks/DefaultDeferredPermalinkService.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/permalinks/DefaultDeferredPermalinkService.kt index 6c5c716e48..caf5e5c6e2 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/permalinks/DefaultDeferredPermalinkService.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/permalinks/DefaultDeferredPermalinkService.kt @@ -18,10 +18,10 @@ package org.matrix.android.sdk.internal.session.permalinks import android.content.ClipboardManager import android.content.Context +import androidx.core.content.getSystemService import org.matrix.android.sdk.api.session.permalinks.DeferredPermalinkService import org.matrix.android.sdk.api.session.permalinks.PermalinkData import org.matrix.android.sdk.api.session.permalinks.PermalinkParser -import androidx.core.content.getSystemService import javax.inject.Inject class DefaultDeferredPermalinkService @Inject constructor(