Commit bdb2f77f authored by Varun Patil's avatar Varun Patil

Open profile fragment on clicking user card in body page

parent 63892b0d
...@@ -233,15 +233,15 @@ public class BodyFragment extends Fragment { ...@@ -233,15 +233,15 @@ public class BodyFragment extends Fragment {
@Override @Override
public void onItemClick(View v, int position) { public void onItemClick(View v, int position) {
User user = users.get(position); User user = users.get(position);
/*Bundle bundle = new Bundle(); Bundle bundle = new Bundle();
bundle.putString(Constants.EVENT_JSON, new Gson().toJson(event)); bundle.putString(Constants.USER_ID, user.getUserID());
EventFragment eventFragment = new EventFragment(); ProfileFragment profileFragment = new ProfileFragment();
eventFragment.setArguments(bundle); profileFragment.setArguments(bundle);
FragmentTransaction ft = getActivity().getSupportFragmentManager().beginTransaction(); FragmentTransaction ft = getActivity().getSupportFragmentManager().beginTransaction();
ft.setCustomAnimations(R.anim.slide_in_left, R.anim.slide_out_left, R.anim.slide_in_right, R.anim.slide_out_right); ft.setCustomAnimations(R.anim.slide_in_left, R.anim.slide_out_left, R.anim.slide_in_right, R.anim.slide_out_right);
ft.replace(R.id.framelayout_for_fragment, eventFragment, eventFragment.getTag()); ft.replace(R.id.framelayout_for_fragment, profileFragment, profileFragment.getTag());
ft.addToBackStack(eventFragment.getTag()); ft.addToBackStack(profileFragment.getTag());
ft.commit();*/ ft.commit();
} }
}); });
userRecyclerView.setAdapter(userAdapter); userRecyclerView.setAdapter(userAdapter);
......
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