mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-26 22:31:01 +00:00
feat: notification to activity click
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user