0
Good night, you guys.
My scenario is the following: In Activity A, I fill a list through a Recycleview with an Arraylist returned from my Webservice. The Layout of this list has an image, a title and a button for each item. The button plays the role of follow/unfollow, that is when it is clicked (mute its icon and save the status via webservice), it follows or stops following another user from the list. When I click on the image, I go to the user profile for the list item. Ok, so far so good, working perfectly.
When I enter the User profile (Activity B), there is also the follow/unfollow button. So, basically I want that if the follow/unfollow button is clicked on the user profile (Activity B), and the person returns to the user list (Activity A) the value of the button for the item is updated in the list.
I thought about using startActivityForResult, but I can’t call it inside my Adapter which is where I treat the onclick of the button and image. And I wouldn’t want to reload the list in Activity A’s onResume.
Does anyone have any idea ?
Man, that’s exactly what I did. Thanks for the reply :)
– sThiago