fix(deps): update activity to v1.13.0 (#6327)
* fix(deps): update activity to v1.13.0 * Remove usages of deprecated `bundleOf` --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jorge Martín <jorgem@element.io>
This commit is contained in:
@@ -16,7 +16,7 @@ datastore = "1.2.1"
|
||||
constraintlayout = "2.2.1"
|
||||
constraintlayout_compose = "1.1.1"
|
||||
lifecycle = "2.10.0"
|
||||
activity = "1.12.4"
|
||||
activity = "1.13.0"
|
||||
media3 = "1.9.2"
|
||||
camera = "1.5.3"
|
||||
work = "2.11.1"
|
||||
|
||||
@@ -11,11 +11,11 @@ package io.element.android.libraries.push.impl.notifications.factories
|
||||
import android.app.Notification
|
||||
import android.content.Context
|
||||
import android.graphics.Bitmap
|
||||
import android.os.Bundle
|
||||
import androidx.annotation.ColorInt
|
||||
import androidx.core.app.NotificationCompat
|
||||
import androidx.core.app.NotificationCompat.MessagingStyle
|
||||
import androidx.core.app.Person
|
||||
import androidx.core.os.bundleOf
|
||||
import coil3.ImageLoader
|
||||
import dev.zacsweers.metro.AppScope
|
||||
import dev.zacsweers.metro.ContributesBinding
|
||||
@@ -145,7 +145,7 @@ class DefaultNotificationCreator(
|
||||
sessionId = roomInfo.sessionId,
|
||||
roomId = roomInfo.roomId,
|
||||
eventId = eventId,
|
||||
extras = bundleOf(ROOM_OPENED_FROM_NOTIFICATION to true),
|
||||
extras = Bundle().apply { putBoolean(ROOM_OPENED_FROM_NOTIFICATION, true) },
|
||||
)
|
||||
}
|
||||
val containsMissedCall = events.any { it.type == EventType.RTC_NOTIFICATION }
|
||||
@@ -293,7 +293,7 @@ class DefaultNotificationCreator(
|
||||
sessionId = simpleNotifiableEvent.sessionId,
|
||||
roomId = simpleNotifiableEvent.roomId,
|
||||
eventId = null,
|
||||
extras = bundleOf(ROOM_OPENED_FROM_NOTIFICATION to true),
|
||||
extras = Bundle().apply { putBoolean(ROOM_OPENED_FROM_NOTIFICATION, true) },
|
||||
)
|
||||
)
|
||||
.apply {
|
||||
@@ -331,9 +331,7 @@ class DefaultNotificationCreator(
|
||||
.annotateForDebug(8)
|
||||
)
|
||||
.setExtras(
|
||||
bundleOf(
|
||||
FALLBACK_COUNTER_EXTRA to counter
|
||||
)
|
||||
Bundle().apply { putInt(FALLBACK_COUNTER_EXTRA, counter) },
|
||||
)
|
||||
.setNumber(counter)
|
||||
.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_ALL)
|
||||
|
||||
Reference in New Issue
Block a user