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.
1 parent 44bf345 commit ea29fe0Copy full SHA for ea29fe0
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