From c59871300ad6e9bf254468103356bee74ac08d4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 14 Dec 2023 14:54:12 +0900 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8B=95=E3=81=97=E3=81=A6=E3=81=AA?= =?UTF-8?q?=E3=81=8F=E3=81=AA=E3=81=A3=E3=81=9F=E3=82=A4=E3=83=B3=E3=83=9D?= =?UTF-8?q?=E3=83=BC=E3=83=88/Injection=E3=82=92=E6=B6=88=E3=81=97?= =?UTF-8?q?=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../feature/debug/DebugPlayGroundFragment.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugPlayGroundFragment.java b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugPlayGroundFragment.java index 64b941ae..8f1b0703 100644 --- a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugPlayGroundFragment.java +++ b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugPlayGroundFragment.java @@ -9,13 +9,6 @@ import android.view.View; import android.view.ViewGroup; import android.widget.Toast; -import one.nem.lacerta.data.repository.Documents; - -import one.nem.lacerta.data.repository.SharedPref; - -import one.nem.lacerta.data.model.shared_pref.enums.SharedPrefType; - -import one.nem.lacerta.source.db.LacertaDatabase; import javax.inject.Inject; @@ -24,15 +17,6 @@ import dagger.hilt.android.AndroidEntryPoint; @AndroidEntryPoint // HiltのDIを有効にするアノテーション public class DebugPlayGroundFragment extends Fragment { - @Inject // DI - Documents documents; - - @Inject // DI - SharedPref sharedPref; - - @Inject - LacertaDatabase lacertaDatabase; // TODO-rca: Repositoryを噛ませる - public DebugPlayGroundFragment() { // Required empty public constructor } @@ -64,7 +48,5 @@ public class DebugPlayGroundFragment extends Fragment { // findViewById(R.id.hoge)とかは view.findViewById(R.id.hoge) と書き換える必要アリ // (viewは引数として受け取ってるviewなので、別メソッドに切り出したりするなら渡してあげる) - // ShardPrefの要素数をトーストする例 - Toast.makeText(getContext(), "DBの要素数" + lacertaDatabase.repositoriesDao(), Toast.LENGTH_SHORT).show(); } } \ No newline at end of file