mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-25 04:22:30 +01:00
commit
1531a5112c
@ -157,9 +157,8 @@ public final class NavigationHelper {
|
||||
return;
|
||||
}
|
||||
|
||||
if (PlayerHolder.getInstance().getType() != PlayerType.POPUP) {
|
||||
Toast.makeText(context, R.string.popup_playing_toast, Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
Toast.makeText(context, R.string.popup_playing_toast, Toast.LENGTH_SHORT).show();
|
||||
|
||||
final Intent intent = getPlayerIntent(context, MainPlayer.class, queue, resumePlayback);
|
||||
intent.putExtra(Player.PLAYER_TYPE, MainPlayer.PlayerType.POPUP.ordinal());
|
||||
ContextCompat.startForegroundService(context, intent);
|
||||
@ -168,12 +167,7 @@ public final class NavigationHelper {
|
||||
public static void playOnBackgroundPlayer(final Context context,
|
||||
final PlayQueue queue,
|
||||
final boolean resumePlayback) {
|
||||
Toast.makeText(
|
||||
context,
|
||||
PlayerHolder.getInstance().getType() == PlayerType.AUDIO
|
||||
? R.string.background_player_already_playing_toast
|
||||
: R.string.background_player_playing_toast,
|
||||
Toast.LENGTH_SHORT)
|
||||
Toast.makeText(context, R.string.background_player_playing_toast, Toast.LENGTH_SHORT)
|
||||
.show();
|
||||
|
||||
final Intent intent = getPlayerIntent(context, MainPlayer.class, queue, resumePlayback);
|
||||
|
@ -143,7 +143,6 @@
|
||||
<string name="settings_category_updates_title">Updates</string>
|
||||
<string name="settings_category_notification_title">Notification</string>
|
||||
<string name="background_player_playing_toast">Playing in background</string>
|
||||
<string name="background_player_already_playing_toast">Already playing in background</string>
|
||||
<string name="popup_playing_toast">Playing in popup mode</string>
|
||||
<string name="content">Content</string>
|
||||
<string name="show_age_restricted_content_title">Show age restricted content</string>
|
||||
|
Loading…
Reference in New Issue
Block a user