mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-11-16 13:53:53 +01:00
Minified code
This commit is contained in:
parent
989bcbf895
commit
b67bf16d4f
@ -168,14 +168,12 @@ public final class NavigationHelper {
|
||||
public static void playOnBackgroundPlayer(final Context context,
|
||||
final PlayQueue queue,
|
||||
final boolean resumePlayback) {
|
||||
final int toastText;
|
||||
if (PlayerHolder.getInstance().getType() == MainPlayer.PlayerType.AUDIO) {
|
||||
toastText = R.string.background_player_already_playing_toast;
|
||||
} else {
|
||||
toastText = R.string.background_player_playing_toast;
|
||||
}
|
||||
|
||||
Toast.makeText(context, toastText, Toast.LENGTH_SHORT)
|
||||
Toast.makeText(
|
||||
context,
|
||||
PlayerHolder.getInstance().getType() == PlayerType.AUDIO
|
||||
? R.string.background_player_playing_toast
|
||||
: R.string.background_player_playing_toast,
|
||||
Toast.LENGTH_SHORT)
|
||||
.show();
|
||||
|
||||
final Intent intent = getPlayerIntent(context, MainPlayer.class, queue, resumePlayback);
|
||||
|
Loading…
Reference in New Issue
Block a user