Ask for permission when enqueuing in a popup

pull/9653/head
petlyh 2023-01-10 13:57:36 +01:00
rodzic 1bb166a9e8
commit edff696ecc
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0E7BACA438DF2505
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -183,6 +183,11 @@ public final class NavigationHelper {
public static void enqueueOnPlayer(final Context context,
final PlayQueue queue,
final PlayerType playerType) {
if ((playerType == PlayerType.POPUP) && !PermissionHelper.isPopupEnabled(context)) {
PermissionHelper.showPopupEnablementToast(context);
return;
}
Toast.makeText(context, R.string.enqueued, Toast.LENGTH_SHORT).show();
final Intent intent = getPlayerEnqueueIntent(context, PlayerService.class, queue);