Commit 924098a5 authored by Varun Patil's avatar Varun Patil

Rename BodyFragmentNew to BodyFragment

parent 71db08b4
...@@ -20,7 +20,6 @@ import com.google.gson.Gson; ...@@ -20,7 +20,6 @@ import com.google.gson.Gson;
import com.squareup.picasso.Callback; import com.squareup.picasso.Callback;
import com.squareup.picasso.Picasso; import com.squareup.picasso.Picasso;
import java.lang.reflect.Field;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
...@@ -31,7 +30,6 @@ import app.insti.api.model.Event; ...@@ -31,7 +30,6 @@ import app.insti.api.model.Event;
import app.insti.api.model.Notification; import app.insti.api.model.Notification;
import app.insti.api.model.User; import app.insti.api.model.User;
import app.insti.fragment.BodyFragment; import app.insti.fragment.BodyFragment;
import app.insti.fragment.BodyFragmentNew;
import app.insti.fragment.EventFragment; import app.insti.fragment.EventFragment;
import app.insti.fragment.TransitionTargetChild; import app.insti.fragment.TransitionTargetChild;
import app.insti.fragment.TransitionTargetFragment; import app.insti.fragment.TransitionTargetFragment;
...@@ -141,11 +139,11 @@ public final class Utils { ...@@ -141,11 +139,11 @@ public final class Utils {
.commit(); .commit();
} }
public static BodyFragmentNew getBodyFragment(Body body, boolean sharedElements) { public static BodyFragment getBodyFragment(Body body, boolean sharedElements) {
Bundle bundle = new Bundle(); Bundle bundle = new Bundle();
bundle.putString(Constants.BODY_JSON, new Gson().toJson(body)); bundle.putString(Constants.BODY_JSON, new Gson().toJson(body));
bundle.putBoolean(Constants.NO_SHARED_ELEM, !sharedElements); bundle.putBoolean(Constants.NO_SHARED_ELEM, !sharedElements);
BodyFragmentNew bodyFragment = new BodyFragmentNew(); BodyFragment bodyFragment = new BodyFragment();
bodyFragment.setArguments(bundle); bodyFragment.setArguments(bundle);
return bodyFragment; return bodyFragment;
} }
......
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
android:id="@+id/container_body" android:id="@+id/container_body"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="vertical" android:orientation="vertical">
tools:context=".fragment.BodyFragment">
<android.support.v7.widget.CardView <android.support.v7.widget.CardView
android:layout_width="match_parent" android:layout_width="match_parent"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical" android:orientation="vertical"
tools:context=".fragment.BodyFragmentNew" tools:context=".fragment.BodyFragment"
android:background="?attr/themeColor"> android:background="?attr/themeColor">
<android.support.design.widget.CoordinatorLayout <android.support.design.widget.CoordinatorLayout
......
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