We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9a292e3 + 195a76b commit dd65db5Copy full SHA for dd65db5
1 file changed
app/src/main/java/org/schabi/newpipe/download/DownloadDialog.java
@@ -344,7 +344,7 @@ private void initToolbar(final Toolbar toolbar) {
344
toolbar.setNavigationOnClickListener(v -> dismiss());
345
toolbar.setNavigationContentDescription(R.string.cancel);
346
347
- okButton = toolbar.findViewById(R.id.okay);
+ okButton = toolbar.getMenu().findItem(R.id.okay);
348
okButton.setEnabled(false); // disable until the download service connection is done
349
350
toolbar.setOnMenuItemClickListener(item -> {
0 commit comments