mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-12-05 12:45:19 +00:00
Ask for permission when enqueuing in a popup
This commit is contained in:
1 file changed
+5
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user