mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
ToolBar, テキスト修正
This commit is contained in:
parent
b3d095fa40
commit
8e2af0c963
|
@ -104,7 +104,7 @@ public class HomeTopFragment extends Fragment {
|
|||
if (FeatureSwitch.RecyclerView.useSimpleNotifyMethod) {
|
||||
listItemAdapter.notifyDataSetChanged();
|
||||
} else {
|
||||
// IndexOutOfBoundsExceptionを吐くことがあったので
|
||||
// IndexOutOfBoundsExceptionを吐くことがあったので いったん
|
||||
listItemAdapter.notifyItemRangeInserted(0, listItems.size() - 1);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
<item
|
||||
android:id="@+id/menu_item_create_new_folder"
|
||||
android:icon="@drawable/developer_mode_24px"
|
||||
android:title="@string/app_name"
|
||||
app:showAsAction="ifRoom"/> <!-- TODO-rca: change this -->
|
||||
android:icon="@drawable/create_new_folder_24px"
|
||||
android:title="@string/create_new_folder"
|
||||
app:showAsAction="never"/>
|
||||
|
||||
</menu>
|
|
@ -1,3 +1,4 @@
|
|||
<resources>
|
||||
<string name="app_name">Library</string>
|
||||
<string name="create_new_folder">新しいフォルダを作成</string>
|
||||
</resources>
|
Loading…
Reference in New Issue
Block a user