Add to playlist - Showing toast that this may take a moment

This commit is contained in:
litetex 2021-10-09 18:47:36 +02:00
parent 731640997e
commit d7d87691cb
2 changed files with 9 additions and 0 deletions

View File

@ -591,6 +591,14 @@ public class RouterActivity extends AppCompatActivity {
} }
private void openAddToPlaylistDialog() { private void openAddToPlaylistDialog() {
// Getting the stream info usually takes a moment
// Notifying the user here to ensure that no confusion arises
Toast.makeText(
getApplicationContext(),
getString(R.string.processing_may_take_a_moment),
Toast.LENGTH_SHORT)
.show();
disposables.add(ExtractorHelper.getStreamInfo(currentServiceId, currentUrl, false) disposables.add(ExtractorHelper.getStreamInfo(currentServiceId, currentUrl, false)
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())

View File

@ -440,6 +440,7 @@
<string name="rename_playlist">Rename</string> <string name="rename_playlist">Rename</string>
<string name="name">Name</string> <string name="name">Name</string>
<string name="add_to_playlist">Add to playlist</string> <string name="add_to_playlist">Add to playlist</string>
<string name="processing_may_take_a_moment">Processing... May take moment</string>
<string name="mute">Mute</string> <string name="mute">Mute</string>
<string name="unmute">Unmute</string> <string name="unmute">Unmute</string>
<string name="set_as_playlist_thumbnail">Set as playlist thumbnail</string> <string name="set_as_playlist_thumbnail">Set as playlist thumbnail</string>