Search in sources :

Example 1 with ComplaintFragment

use of app.insti.fragment.ComplaintFragment in project IITB-App by wncc.

the class ComplaintsAdapter method getComplaint.

private void getComplaint(Venter.Complaint detailedComplaint) {
    Bundle bundle = new Bundle();
    bundle.putString("id", detailedComplaint.getComplaintID());
    bundle.putString("userId", userID);
    bundle.putString("userProfileUrl", userProfileUrl);
    ComplaintFragment complaintFragment = new ComplaintFragment();
    complaintFragment.setArguments(bundle);
    AppCompatActivity activity = (AppCompatActivity) context;
    activity.getSupportFragmentManager().beginTransaction().replace(R.id.framelayout_for_fragment, complaintFragment).addToBackStack(TAG).commit();
}
Also used : ComplaintFragment(app.insti.fragment.ComplaintFragment) Bundle(android.os.Bundle) AppCompatActivity(androidx.appcompat.app.AppCompatActivity)

Aggregations

Bundle (android.os.Bundle)1 AppCompatActivity (androidx.appcompat.app.AppCompatActivity)1 ComplaintFragment (app.insti.fragment.ComplaintFragment)1