From d4e429fdcad98694f07b8aadb2ce10bfbb64f503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Mon, 11 Dec 2023 11:47:15 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BE=9D=E5=AD=98=E9=96=A2=E4=BF=82=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0=E3=81=A8=E3=81=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/one/nem/lacerta/source/pref/impl/CommonImpl.java | 4 +++- .../java/one/nem/lacerta/feature/debug/DebugMenuFragment.java | 2 ++ gradle/libs.versions.toml | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/data/src/main/java/one/nem/lacerta/source/pref/impl/CommonImpl.java b/data/src/main/java/one/nem/lacerta/source/pref/impl/CommonImpl.java index c6a016d1..ffcdaf52 100644 --- a/data/src/main/java/one/nem/lacerta/source/pref/impl/CommonImpl.java +++ b/data/src/main/java/one/nem/lacerta/source/pref/impl/CommonImpl.java @@ -14,8 +14,10 @@ import javax.inject.Inject; import dagger.hilt.android.AndroidEntryPoint; import dagger.hilt.android.qualifiers.ApplicationContext; +import one.nem.lacerta.source.pref.repository.Common; + @AndroidEntryPoint -public class CommonImpl { +public class CommonImpl implements Common { @ApplicationContext @Inject diff --git a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuFragment.java b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuFragment.java index d52a720a..5c1a8d1a 100644 --- a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuFragment.java +++ b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuFragment.java @@ -3,6 +3,7 @@ package one.nem.lacerta.feature.debug; import android.os.Bundle; import androidx.fragment.app.Fragment; +import androidx.navigation.Navigation; import androidx.navigation.ui.NavigationUI; import android.view.LayoutInflater; @@ -88,6 +89,7 @@ public class DebugMenuFragment extends Fragment { view.findViewById(R.id.btn_debug_menu_shared_pref_editor).setOnClickListener( v -> { // Fragment移動 + Navigation.findNavController(view).navigate(R.id.action_debugMenuFragment_to_debugSharedPrefEditorFragment); }); view.findViewById(R.id.btn_debug_menu_clear_pref).setOnClickListener( v -> { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7e6bfe7a..46fa8f5a 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,7 @@ [versions] nav = "2.7.5" agp = "8.0.2" +activity = "1.8.0" [libraries] navigation-fragment = { group="androidx.navigation", name="navigation-fragment", version.ref="nav"} @@ -17,6 +18,7 @@ androidx-test-espresso-core = { group="androidx.test.espresso", name="espresso-c com-google-dagger-hilt-android = { group="com.google.dagger", name="hilt-android", version="2.44" } com-google-dagger-hilt-compiler = { group="com.google.dagger", name="hilt-compiler", version="2.44" } +androidx-activity = { group = "androidx.activity", name = "activity", version.ref = "activity" } [plugins] com-android-library = { id = "com.android.library", version.ref = "agp" } \ No newline at end of file