Search in sources :

Example 1 with BodyFragment

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

the class Utils method getBodyFragment.

public static BodyFragment getBodyFragment(Body body, boolean sharedElements) {
    Bundle bundle = new Bundle();
    bundle.putString(Constants.BODY_JSON, new Gson().toJson(body));
    bundle.putBoolean(Constants.NO_SHARED_ELEM, !sharedElements);
    BodyFragment bodyFragment = new BodyFragment();
    bodyFragment.setArguments(bundle);
    return bodyFragment;
}
Also used : Bundle(android.os.Bundle) Gson(com.google.gson.Gson) BodyFragment(app.insti.fragment.BodyFragment)

Aggregations

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