デバッグロジック実装 WIP

This commit is contained in:
r-ca 2024-01-14 14:01:43 +09:00
parent a9fb6283e7
commit a3426b6620
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -8,7 +8,11 @@ import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import javax.inject.Inject;
import dagger.hilt.android.AndroidEntryPoint;
import one.nem.lacerta.vcs.LacertaVcs;
import one.nem.lacerta.vcs.factory.LacertaVcsFactory;
/**
* A simple {@link Fragment} subclass.
@ -19,6 +23,9 @@ import dagger.hilt.android.AndroidEntryPoint;
@AndroidEntryPoint
public class DebugMenuVcsGeneralActionFragment extends Fragment {
@Inject
LacertaVcsFactory lacertaVcsFactory;
public DebugMenuVcsGeneralActionFragment() {
// Required empty public constructor
}
@ -42,7 +49,8 @@ public class DebugMenuVcsGeneralActionFragment extends Fragment {
View view = inflater.inflate(R.layout.fragment_debug_menu_vcs_general_action, container, false);
view.findViewById(R.id.add_sample_log_rev_button).setOnClickListener(v -> {
LacertaVcs lacertaVcs = lacertaVcsFactory.create("example_id");
lacertaVcs.insertPage(1, "example_id");
});
return view;