Search in sources :

Example 1 with EventFragment

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

the class Utils method getEventFragment.

public static EventFragment getEventFragment(Event event, boolean sharedElements) {
    String eventJson = new Gson().toJson(event);
    Bundle bundle = new Bundle();
    bundle.putString(Constants.EVENT_JSON, eventJson);
    bundle.putBoolean(Constants.NO_SHARED_ELEM, !sharedElements);
    EventFragment eventFragment = new EventFragment();
    eventFragment.setArguments(bundle);
    return eventFragment;
}
Also used : EventFragment(app.insti.fragment.EventFragment) Bundle(android.os.Bundle) Gson(com.google.gson.Gson)

Aggregations

Bundle (android.os.Bundle)1 EventFragment (app.insti.fragment.EventFragment)1 Gson (com.google.gson.Gson)1