mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-04-19 05:11:22 +00:00
Correctly retrieve menu item inside download dialog
This commit is contained in:
@@ -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 -> {
|
||||
|
||||
Reference in New Issue
Block a user