Use createShortcutId() in the test.
This commit is contained in:
@@ -21,6 +21,7 @@ import io.element.android.libraries.matrix.test.A_SESSION_ID
|
||||
import io.element.android.libraries.matrix.test.A_SESSION_ID_2
|
||||
import io.element.android.libraries.matrix.test.FakeMatrixClientProvider
|
||||
import io.element.android.libraries.push.impl.notifications.factories.FakeIntentProvider
|
||||
import io.element.android.libraries.push.impl.notifications.shortcut.createShortcutId
|
||||
import io.element.android.libraries.push.test.notifications.FakeImageLoaderHolder
|
||||
import io.element.android.libraries.push.test.notifications.push.FakeNotificationBitmapLoader
|
||||
import io.element.android.libraries.sessionstorage.test.observer.FakeSessionObserver
|
||||
@@ -58,7 +59,7 @@ class DefaultNotificationConversationServiceTest {
|
||||
val context = InstrumentationRegistry.getInstrumentation().context
|
||||
val service = createService(context)
|
||||
|
||||
val shortcutId = "$A_SESSION_ID-$A_ROOM_ID"
|
||||
val shortcutId = createShortcutId(A_SESSION_ID, A_ROOM_ID)
|
||||
val shortcutInfo = ShortcutInfoCompat.Builder(context, shortcutId)
|
||||
.setShortLabel("Room title")
|
||||
.setIntent(Intent(Intent.ACTION_VIEW))
|
||||
|
||||
Reference in New Issue
Block a user