diff --git a/app/src/main/org/runnerup/notification/GpsBoundState.java b/app/src/main/org/runnerup/notification/GpsBoundState.java index 8fd0da341..3bc1b4357 100644 --- a/app/src/main/org/runnerup/notification/GpsBoundState.java +++ b/app/src/main/org/runnerup/notification/GpsBoundState.java @@ -28,6 +28,7 @@ public GpsBoundState(Context context) { PendingIntent pi = PendingIntent.getActivity(context, 0, i, intentFlags); Intent startIntent = new Intent() + .setPackage(context.getPackageName()) .setAction(Constants.Intents.START_ACTIVITY); PendingIntent pendingStart = PendingIntent.getBroadcast( context, 0, startIntent, PendingIntent.FLAG_UPDATE_CURRENT | intentFlags); diff --git a/app/src/main/org/runnerup/notification/OngoingState.java b/app/src/main/org/runnerup/notification/OngoingState.java index 3c5baad9e..3898d2b75 100644 --- a/app/src/main/org/runnerup/notification/OngoingState.java +++ b/app/src/main/org/runnerup/notification/OngoingState.java @@ -39,11 +39,13 @@ public OngoingState(Formatter formatter, WorkoutInfo workoutInfo, Context contex PendingIntent pi = PendingIntent.getActivity(context, 0, i, intentFlags); Intent lapIntent = new Intent() + .setPackage(context.getPackageName()) .setAction(Constants.Intents.NEW_LAP); PendingIntent pendingLap = PendingIntent.getBroadcast( context, 0, lapIntent, PendingIntent.FLAG_UPDATE_CURRENT | intentFlags); Intent pauseIntent = new Intent() + .setPackage(context.getPackageName()) .setAction(Constants.Intents.PAUSE_RESUME); PendingIntent pendingPause = PendingIntent.getBroadcast( context, 0, pauseIntent, PendingIntent.FLAG_UPDATE_CURRENT | intentFlags);