Correctly retrieve menu item inside download dialog
This commit is contained in:
parent
9a292e33f9
commit
195a76bb08
1 changed files with 1 additions and 1 deletions
|
|
@ -344,7 +344,7 @@ public class DownloadDialog extends DialogFragment
|
|||
toolbar.setNavigationOnClickListener(v -> dismiss());
|
||||
toolbar.setNavigationContentDescription(R.string.cancel);
|
||||
|
||||
okButton = toolbar.findViewById(R.id.okay);
|
||||
okButton = toolbar.getMenu().findItem(R.id.okay);
|
||||
okButton.setEnabled(false); // disable until the download service connection is done
|
||||
|
||||
toolbar.setOnMenuItemClickListener(item -> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue