From a3426b662082bfc1197a9323183eacdb7dc9484b Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 14 Jan 2024 14:01:43 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=87=E3=83=90=E3=83=83=E3=82=B0=E3=83=AD?= =?UTF-8?q?=E3=82=B8=E3=83=83=E3=82=AF=E5=AE=9F=E8=A3=85=20WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../debug/DebugMenuVcsGeneralActionFragment.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuVcsGeneralActionFragment.java b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuVcsGeneralActionFragment.java index 0e6c60c9..6b97b63f 100644 --- a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuVcsGeneralActionFragment.java +++ b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuVcsGeneralActionFragment.java @@ -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;