Minified code

This commit is contained in:
litetex 2021-12-26 23:57:54 +01:00 committed by GitHub
parent 989bcbf895
commit b67bf16d4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 8 deletions

View File

@ -168,14 +168,12 @@ public final class NavigationHelper {
public static void playOnBackgroundPlayer(final Context context, public static void playOnBackgroundPlayer(final Context context,
final PlayQueue queue, final PlayQueue queue,
final boolean resumePlayback) { final boolean resumePlayback) {
final int toastText; Toast.makeText(
if (PlayerHolder.getInstance().getType() == MainPlayer.PlayerType.AUDIO) { context,
toastText = R.string.background_player_already_playing_toast; PlayerHolder.getInstance().getType() == PlayerType.AUDIO
} else { ? R.string.background_player_playing_toast
toastText = R.string.background_player_playing_toast; : R.string.background_player_playing_toast,
} Toast.LENGTH_SHORT)
Toast.makeText(context, toastText, Toast.LENGTH_SHORT)
.show(); .show();
final Intent intent = getPlayerIntent(context, MainPlayer.class, queue, resumePlayback); final Intent intent = getPlayerIntent(context, MainPlayer.class, queue, resumePlayback);