feat(social): filter activity only with in 3days

This commit is contained in:
aayush262 2024-04-28 01:40:17 +05:30
parent 133354a22d
commit 90b9b7bef3
7 changed files with 40 additions and 30 deletions

View file

@ -5,8 +5,10 @@ import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import ani.dantotsu.R
import ani.dantotsu.connections.anilist.Anilist
import ani.dantotsu.databinding.ItemUserStatusBinding
import ani.dantotsu.getAppString
import ani.dantotsu.loadImage
import ani.dantotsu.profile.ProfileActivity
import ani.dantotsu.profile.User
@ -59,7 +61,7 @@ class UserStatusAdapter(private val user: ArrayList<User>) :
setAnimation(b.root.context, b.root)
val user = user[position]
b.profileUserAvatar.loadImage(user.pfp)
b.profileUserName.text = if (Anilist.userid == user.id) "You" else user.name
b.profileUserName.text = if (Anilist.userid == user.id) getAppString(R.string.your_story) else user.name
val watchedActivity =
PrefManager.getCustomVal<Set<Int>>("${user.id}_activities", setOf())