HiltのInjectを追加

This commit is contained in:
r-ca 2024-01-28 12:37:48 +09:00
parent bd1ea74c4c
commit e6cdba337e
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -8,13 +8,33 @@ import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import javax.inject.Inject;
import dagger.hilt.android.AndroidEntryPoint;
import one.nem.lacerta.data.Document;
import one.nem.lacerta.data.LacertaLibrary;
import one.nem.lacerta.utils.LacertaLogger;
import one.nem.lacerta.vcs.factory.LacertaVcsFactory;
/** /**
* A simple {@link Fragment} subclass. * A simple {@link Fragment} subclass.
* Use the {@link ViewerBodyFragment#newInstance} factory method to * Use the {@link ViewerBodyFragment#newInstance} factory method to
* create an instance of this fragment. * create an instance of this fragment.
*/ */
@AndroidEntryPoint
public class ViewerBodyFragment extends Fragment { public class ViewerBodyFragment extends Fragment {
@Inject
Document document;
@Inject
LacertaLibrary lacertaLibrary;
@Inject
LacertaLogger logger;
@Inject
LacertaVcsFactory lacertaVcsFactory;
public ViewerBodyFragment() { public ViewerBodyFragment() {
// Required empty public constructor // Required empty public constructor