Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SdlRouterService change PendingIntents getForegroundService to getService #1855

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1858,7 +1858,7 @@ public void onTransportConnected(final TransportRecord record) {
//the developer can use this pendingIntent to start their SdlService from the context of
//the active RouterService
Intent pending = new Intent();
PendingIntent pendingIntent = PendingIntent.getForegroundService(this, (int) System.currentTimeMillis(), pending, PendingIntent.FLAG_MUTABLE | Intent.FILL_IN_COMPONENT);
PendingIntent pendingIntent = PendingIntent.getService(this, (int) System.currentTimeMillis(), pending, PendingIntent.FLAG_MUTABLE | Intent.FILL_IN_COMPONENT);
startService.putExtra(TransportConstants.PENDING_INTENT_EXTRA, pendingIntent);
}

Expand Down Expand Up @@ -2981,7 +2981,7 @@ private Intent createPingIntent() {
//the developer can use this pendingIntent to start their SdlService from the context of
//the active RouterService
Intent pending = new Intent();
PendingIntent pendingIntent = PendingIntent.getForegroundService(this, (int) System.currentTimeMillis(), pending, PendingIntent.FLAG_MUTABLE | Intent.FILL_IN_COMPONENT);
PendingIntent pendingIntent = PendingIntent.getService(this, (int) System.currentTimeMillis(), pending, PendingIntent.FLAG_MUTABLE | Intent.FILL_IN_COMPONENT);
pingIntent.putExtra(TransportConstants.PENDING_INTENT_EXTRA, pendingIntent);
}

Expand Down
Loading