rootでは削除を呼べないように

This commit is contained in:
ろむねこ 2024-01-29 12:32:31 +09:00
parent 841258d82a
commit 9288360eb4
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -319,6 +319,8 @@ public class LibraryPageFragment extends Fragment {
} else { } else {
toolbar.setNavigationIcon(null); toolbar.setNavigationIcon(null);
} }
if (this.folderId == null) toolbar.getMenu().findItem(R.id.menu_item_delete_folder).setVisible(false); // ルートフォルダの場合は削除ボタンを非表示にする
toolbar.setTitle(title); toolbar.setTitle(title);
toolbar.getMenu().clear(); toolbar.getMenu().clear();
toolbar.inflateMenu(R.menu.dir_menu); toolbar.inflateMenu(R.menu.dir_menu);