Add to playlist - Showing toast that this may take a moment
This commit is contained in:
parent
731640997e
commit
d7d87691cb
2 changed files with 9 additions and 0 deletions
|
@ -591,6 +591,14 @@ public class RouterActivity extends AppCompatActivity {
|
|||
}
|
||||
|
||||
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)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
|
|
|
@ -440,6 +440,7 @@
|
|||
<string name="rename_playlist">Rename</string>
|
||||
<string name="name">Name</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="unmute">Unmute</string>
|
||||
<string name="set_as_playlist_thumbnail">Set as playlist thumbnail</string>
|
||||
|
|
Loading…
Reference in a new issue