mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
デバッグロジック実装 WIP
This commit is contained in:
parent
a9fb6283e7
commit
a3426b6620
|
@ -8,7 +8,11 @@ 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 dagger.hilt.android.AndroidEntryPoint;
|
||||||
|
import one.nem.lacerta.vcs.LacertaVcs;
|
||||||
|
import one.nem.lacerta.vcs.factory.LacertaVcsFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A simple {@link Fragment} subclass.
|
* A simple {@link Fragment} subclass.
|
||||||
|
@ -19,6 +23,9 @@ import dagger.hilt.android.AndroidEntryPoint;
|
||||||
@AndroidEntryPoint
|
@AndroidEntryPoint
|
||||||
public class DebugMenuVcsGeneralActionFragment extends Fragment {
|
public class DebugMenuVcsGeneralActionFragment extends Fragment {
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
LacertaVcsFactory lacertaVcsFactory;
|
||||||
|
|
||||||
public DebugMenuVcsGeneralActionFragment() {
|
public DebugMenuVcsGeneralActionFragment() {
|
||||||
// Required empty public constructor
|
// 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 view = inflater.inflate(R.layout.fragment_debug_menu_vcs_general_action, container, false);
|
||||||
|
|
||||||
view.findViewById(R.id.add_sample_log_rev_button).setOnClickListener(v -> {
|
view.findViewById(R.id.add_sample_log_rev_button).setOnClickListener(v -> {
|
||||||
|
LacertaVcs lacertaVcs = lacertaVcsFactory.create("example_id");
|
||||||
|
lacertaVcs.insertPage(1, "example_id");
|
||||||
});
|
});
|
||||||
|
|
||||||
return view;
|
return view;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user