From d8d8a5932bf4f80f350f021c517fdd4c1b36e13b Mon Sep 17 00:00:00 2001 From: r-ca Date: Tue, 23 Jan 2024 00:45:14 +0900 Subject: [PATCH] Revert "WIP" This reverts commit 113a2fd3d2a09084711fe00a4112744faa6febb5. --- .../library/LibraryContainerFragment.java | 34 +------------------ .../navigation/feature_library_navigation.xml | 10 +++--- .../library/src/main/res/values/strings.xml | 2 -- .../one/nem/lacerta/utils/FeatureSwitch.java | 2 +- 4 files changed, 7 insertions(+), 41 deletions(-) diff --git a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryContainerFragment.java b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryContainerFragment.java index 1aca7af7..30b76002 100644 --- a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryContainerFragment.java +++ b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryContainerFragment.java @@ -3,22 +3,17 @@ package one.nem.lacerta.feature.library; import android.os.Bundle; import androidx.fragment.app.Fragment; -import androidx.fragment.app.FragmentContainerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; -import one.nem.lacerta.model.FragmentNavigation; - /** * A simple {@link Fragment} subclass. * Use the {@link LibraryContainerFragment#newInstance} factory method to * create an instance of this fragment. */ -public class LibraryContainerFragment extends Fragment implements FragmentNavigation { - - FragmentContainerView fragmentContainerView; +public class LibraryContainerFragment extends Fragment { public LibraryContainerFragment() { // Required empty public constructor @@ -42,31 +37,4 @@ public class LibraryContainerFragment extends Fragment implements FragmentNaviga // Inflate the layout for this fragment return inflater.inflate(R.layout.fragment_library_container, container, false); } - - @Override - public void onViewCreated(View view, Bundle savedInstanceState) { - super.onViewCreated(view, savedInstanceState); - fragmentContainerView = view.findViewById(R.id.fragmentContainerView); - } - - @Override - public void navigateToFragment(Fragment fragment) { - this.navigateToFragment(fragment, true); - } - - @Override - public void navigateToFragment(Fragment fragment, boolean addToBackStack) { - this.navigateToFragment(fragment, addToBackStack, false); - } - - @Override - public void navigateToFragment(Fragment fragment, boolean addToBackStack, boolean clearBackStack) { - if (fragmentContainerView != null) { - } - } - - @Override - public void navigateToFragmentAlternate(Fragment fragment, boolean addToBackStack) { - - } } \ No newline at end of file diff --git a/feature/library/src/main/res/navigation/feature_library_navigation.xml b/feature/library/src/main/res/navigation/feature_library_navigation.xml index 6439368e..136b7b98 100644 --- a/feature/library/src/main/res/navigation/feature_library_navigation.xml +++ b/feature/library/src/main/res/navigation/feature_library_navigation.xml @@ -3,10 +3,10 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/feature_library_navigation" - app:startDestination="@id/libraryContainerFragment"> + app:startDestination="@id/feature_library_top_fragment"> + android:id="@+id/feature_library_top_fragment" + android:name="one.nem.lacerta.feature.library.LibraryPageFragment" + android:label="fragment_library_top" + tools:layout="@layout/fragment_library_top" /> \ No newline at end of file diff --git a/feature/library/src/main/res/values/strings.xml b/feature/library/src/main/res/values/strings.xml index b3506433..1049ca2d 100644 --- a/feature/library/src/main/res/values/strings.xml +++ b/feature/library/src/main/res/values/strings.xml @@ -1,5 +1,3 @@ Library - - Hello blank fragment \ No newline at end of file diff --git a/utils/src/main/java/one/nem/lacerta/utils/FeatureSwitch.java b/utils/src/main/java/one/nem/lacerta/utils/FeatureSwitch.java index 5a1d18c1..5d8dbc57 100644 --- a/utils/src/main/java/one/nem/lacerta/utils/FeatureSwitch.java +++ b/utils/src/main/java/one/nem/lacerta/utils/FeatureSwitch.java @@ -8,7 +8,7 @@ public class FeatureSwitch { public static class FeatureMaster { public static boolean enableSearch = false; - public static boolean enableDebugMenu = true; + public static boolean enableDebugMenu = false; } public static class Setting {