Commit 7655553f authored by Niklas Fix's avatar Niklas Fix 🎓

fix adding user

parent f66f6925
......@@ -295,6 +295,8 @@ class FriendsListFragment : Fragment(),
Toast.makeText(requireActivity(), resources.getString(R.string.user_added_to_friends, user.username), Toast.LENGTH_SHORT).show()
searchListAdapter?.friends?.add(user)
searchListAdapter?.notifyDataSetChanged()
friendsListAdapter?.mFriends?.add(0, user)
friendsListAdapter?.notifyItemInserted(0)
}
override fun onAddRecommendedUserClicked(user: User) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment