diff --git a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryTopFragment.java b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryTopFragment.java index 5ac527f8..8dd366d8 100644 --- a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryTopFragment.java +++ b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryTopFragment.java @@ -72,6 +72,8 @@ public class LibraryTopFragment extends Fragment { // Inflate the layout for this fragment View view = inflater.inflate(R.layout.fragment_library_top, container, false); + setHasOptionsMenu(true); + return view; } @@ -95,4 +97,10 @@ public class LibraryTopFragment extends Fragment { }); }); } + + @Override + public void onCreateOptionsMenu(@NonNull Menu menu, @NonNull MenuInflater inflater) { + inflater.inflate(R.menu.dir_menu, menu); + super.onCreateOptionsMenu(menu, inflater); + } } diff --git a/feature/library/src/main/res/menu/dir_menu.xml b/feature/library/src/main/res/menu/dir_menu.xml new file mode 100644 index 00000000..451c94a4 --- /dev/null +++ b/feature/library/src/main/res/menu/dir_menu.xml @@ -0,0 +1,11 @@ + +
\ No newline at end of file