Skip to content

Commit

Permalink
Inflated missing menu
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 committed Nov 22, 2024
1 parent 1007784 commit 2afc88b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,15 @@ class QrCodeProjectCreatorDialog :
}

private fun configureMenu() {
val menu = binding.toolbarLayout.toolbar.menu
val toolbar = binding.toolbarLayout.toolbar
toolbar.inflateMenu(R.menu.qr_code_scan_menu)

val menu = toolbar.menu
menu.enableIconsVisibility()

menu.removeItem(R.id.menu_item_share)

binding.toolbarLayout.toolbar.setOnMenuItemClickListener {
toolbar.setOnMenuItemClickListener {
when (it.itemId) {
R.id.menu_item_scan_sd_card -> {
val photoPickerIntent = Intent(Intent.ACTION_GET_CONTENT)
Expand Down

0 comments on commit 2afc88b

Please sign in to comment.