feat: notification to activity click

This commit is contained in:
rebelonion 2024-03-14 16:25:59 -05:00
parent 9e371778b7
commit b69e466853
6 changed files with 199 additions and 62 deletions

View file

@ -107,6 +107,12 @@ class NotificationActivity : AppCompatActivity() {
.putExtra("mediaId", id), null
)
}
NotificationClickType.ACTIVITY -> {
ContextCompat.startActivity(
this, Intent(this, FeedActivity::class.java)
.putExtra("activityId", id), null
)
}
NotificationClickType.UNDEFINED -> {
// Do nothing
}
@ -115,7 +121,7 @@ class NotificationActivity : AppCompatActivity() {
companion object {
enum class NotificationClickType {
USER, MEDIA, UNDEFINED
USER, MEDIA, ACTIVITY, UNDEFINED
}
}
}