@@ -669,13 +669,7 @@ private boolean canHandleChoiceLikeShowInfo(final String selectedChoiceKey) {
669669 }
670670
671671 private void openAddToPlaylistDialog () {
672- // Getting the stream info usually takes a moment
673- // Notifying the user here to ensure that no confusion arises
674- Toast .makeText (
675- getApplicationContext (),
676- getString (R .string .processing_may_take_a_moment ),
677- Toast .LENGTH_SHORT )
678- .show ();
672+ pleaseWait ();
679673
680674 disposables .add (ExtractorHelper .getStreamInfo (currentServiceId , currentUrl , false )
681675 .subscribeOn (Schedulers .io ())
@@ -705,6 +699,8 @@ private void openAddToPlaylistDialog() {
705699
706700 @ SuppressLint ("CheckResult" )
707701 private void openDownloadDialog () {
702+ pleaseWait ();
703+
708704 disposables .add (ExtractorHelper .getStreamInfo (currentServiceId , currentUrl , true )
709705 .subscribeOn (Schedulers .io ())
710706 .observeOn (AndroidSchedulers .mainThread ())
@@ -719,6 +715,16 @@ private void openDownloadDialog() {
719715 }, throwable -> showUnsupportedUrlDialog (currentUrl )));
720716 }
721717
718+ private void pleaseWait () {
719+ // Getting the stream info usually takes a moment
720+ // Notifying the user here to ensure that no confusion arises
721+ Toast .makeText (
722+ getApplicationContext (),
723+ getString (R .string .processing_may_take_a_moment ),
724+ Toast .LENGTH_LONG )
725+ .show ();
726+ }
727+
722728 @ Override
723729 public void onRequestPermissionsResult (final int requestCode ,
724730 @ NonNull final String [] permissions ,
0 commit comments