diff --git a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuContainerFragment.java b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuContainerFragment.java index 16a707c1..b714b9a3 100644 --- a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuContainerFragment.java +++ b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuContainerFragment.java @@ -8,8 +8,6 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; -import com.google.android.material.transition.MaterialSharedAxis; - import dagger.hilt.android.AndroidEntryPoint; /** @@ -54,13 +52,10 @@ public class DebugMenuContainerFragment extends Fragment { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - MaterialSharedAxis enterTransition = new MaterialSharedAxis(MaterialSharedAxis.Z, true); - enterTransition.setDuration(500); - setEnterTransition(enterTransition); - - MaterialSharedAxis returnTransition = new MaterialSharedAxis(MaterialSharedAxis.Z, false); - returnTransition.setDuration(500); - setReturnTransition(returnTransition); + if (getArguments() != null) { + mParam1 = getArguments().getString(ARG_PARAM1); + mParam2 = getArguments().getString(ARG_PARAM2); + } } @Override diff --git a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuTopFragment.java b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuTopFragment.java index ba2e6386..26cb3c3b 100644 --- a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuTopFragment.java +++ b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuTopFragment.java @@ -9,8 +9,6 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; -import com.google.android.material.transition.MaterialSharedAxis; - import java.util.ArrayList; import java.util.List; @@ -36,13 +34,6 @@ public class DebugMenuTopFragment extends Fragment { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - MaterialSharedAxis enterTransition = new MaterialSharedAxis(MaterialSharedAxis.Z, true); - enterTransition.setDuration(500); - setEnterTransition(enterTransition); - - MaterialSharedAxis returnTransition = new MaterialSharedAxis(MaterialSharedAxis.Z, false); - returnTransition.setDuration(500); - setReturnTransition(returnTransition); } @Override diff --git a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryTopFragment.java b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryTopFragment.java index d10e5842..495b235d 100644 --- a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryTopFragment.java +++ b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryTopFragment.java @@ -8,8 +8,6 @@ import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; -import com.google.android.material.transition.MaterialSharedAxis; - /** * A simple {@link Fragment} subclass. * Use the {@link LibraryTopFragment#newInstance} factory method to @@ -51,13 +49,10 @@ public class LibraryTopFragment extends Fragment { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - MaterialSharedAxis enterTransition = new MaterialSharedAxis(MaterialSharedAxis.Z, true); - enterTransition.setDuration(500); - setEnterTransition(enterTransition); - - MaterialSharedAxis returnTransition = new MaterialSharedAxis(MaterialSharedAxis.Z, false); - returnTransition.setDuration(500); - setReturnTransition(returnTransition); + if (getArguments() != null) { + mParam1 = getArguments().getString(ARG_PARAM1); + mParam2 = getArguments().getString(ARG_PARAM2); + } } @Override