Dataモジュール削除

This commit is contained in:
ろむねこ 2023-12-10 17:58:41 +09:00
parent 4462ced6ae
commit 6d3d9f001e
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
2 changed files with 6 additions and 10 deletions

View File

@ -45,7 +45,7 @@ dependencies {
//
// data
implementation project(':data:repository')
// implementation project(':data:repository')
}

View File

@ -11,8 +11,6 @@ import android.widget.Button;
import android.widget.Toast;
import dagger.hilt.android.AndroidEntryPoint;
import one.nem.lacerta.data.repository.TestData;
import javax.inject.Inject;
/**
@ -24,8 +22,6 @@ import javax.inject.Inject;
@AndroidEntryPoint
public class DebugMenuFragment extends Fragment {
@Inject
TestData testData;
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
@ -78,11 +74,11 @@ public class DebugMenuFragment extends Fragment {
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
Button button = view.findViewById(R.id.button_di_test);
// Lambda
button.setOnClickListener(v -> {
Toast.makeText(getContext(), testData.getTestData(), Toast.LENGTH_SHORT).show();
});
// Button button = view.findViewById(R.id.button_di_test);
// // Lambda
// button.setOnClickListener(v -> {
// Toast.makeText(getContext(), testData.getTestData(), Toast.LENGTH_SHORT).show();
// });
}
}