File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -396,17 +396,15 @@ private void showDialog(final List<AdapterChoiceItem> choices) {
396396 .setCancelable (true )
397397 .setNegativeButton (R .string .just_once , dialogButtonsClickListener )
398398 .setPositiveButton (R .string .always , dialogButtonsClickListener )
399- .setOnDismissListener (( dialog ) -> {
399+ .setOnDismissListener (dialog -> {
400400 if (!selectionIsDownload && !selectionIsAddToPlaylist ) {
401401 finish ();
402402 }
403403 })
404404 .create ();
405405
406- //noinspection CodeBlock2Expr
407- alertDialogChoice .setOnShowListener (dialog -> {
408- setDialogButtonsState (alertDialogChoice , radioGroup .getCheckedRadioButtonId () != -1 );
409- });
406+ alertDialogChoice .setOnShowListener (dialog -> setDialogButtonsState (
407+ alertDialogChoice , radioGroup .getCheckedRadioButtonId () != -1 ));
410408
411409 radioGroup .setOnCheckedChangeListener ((group , checkedId ) ->
412410 setDialogButtonsState (alertDialogChoice , true ));
You can’t perform that action at this time.
0 commit comments