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