feat: something

This commit is contained in:
aayush262
2024-06-30 22:29:30 +05:30
parent b09f26ed34
commit 79742f415b
8 changed files with 40 additions and 29 deletions

View File

@@ -79,8 +79,8 @@ class NotificationActivity : AppCompatActivity() {
override fun getItemCount(): Int = if (id != -1) 1 else 4
override fun createFragment(position: Int): Fragment = when (position) {
0 -> newInstance(USER)
1 -> newInstance(if (id != -1) ONE else MEDIA, id)
0 -> newInstance(if (id != -1) ONE else USER, id)
1 -> newInstance(MEDIA)
2 -> newInstance(SUBSCRIPTION)
3 -> newInstance(COMMENT)
else -> newInstance(MEDIA)