diff --git a/feature/home/src/main/java/one/nem/lacerta/feature/home/HomeTopFragment.java b/feature/home/src/main/java/one/nem/lacerta/feature/home/HomeTopFragment.java index 1bd83d56..39a356ba 100644 --- a/feature/home/src/main/java/one/nem/lacerta/feature/home/HomeTopFragment.java +++ b/feature/home/src/main/java/one/nem/lacerta/feature/home/HomeTopFragment.java @@ -104,7 +104,7 @@ public class HomeTopFragment extends Fragment { if (FeatureSwitch.RecyclerView.useSimpleNotifyMethod) { listItemAdapter.notifyDataSetChanged(); } else { - // IndexOutOfBoundsExceptionを吐くことがあったので + // IndexOutOfBoundsExceptionを吐くことがあったので いったん listItemAdapter.notifyItemRangeInserted(0, listItems.size() - 1); } }); diff --git a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryPageFragment.java b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryPageFragment.java index c002164f..363121d5 100644 --- a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryPageFragment.java +++ b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryPageFragment.java @@ -276,6 +276,7 @@ public class LibraryPageFragment extends Fragment { toolbar.setNavigationIcon(null); } toolbar.setTitle(title); + toolbar.getMenu().clear(); toolbar.inflateMenu(R.menu.dir_menu); toolbar.setOnMenuItemClickListener(item -> { if (item.getItemId() == R.id.menu_item_create_new_folder) { diff --git a/feature/library/src/main/res/menu/dir_menu.xml b/feature/library/src/main/res/menu/dir_menu.xml index 451c94a4..e5cea78a 100644 --- a/feature/library/src/main/res/menu/dir_menu.xml +++ b/feature/library/src/main/res/menu/dir_menu.xml @@ -4,8 +4,8 @@ + android:icon="@drawable/create_new_folder_24px" + android:title="@string/create_new_folder" + app:showAsAction="never"/> \ 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 1049ca2d..d0ca5af4 100644 --- a/feature/library/src/main/res/values/strings.xml +++ b/feature/library/src/main/res/values/strings.xml @@ -1,3 +1,4 @@ Library + 新しいフォルダを作成 \ No newline at end of file