From fc93e7e661097135a3a1baf8f0f65f12e2f26cf8 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Wed, 6 Jun 2012 13:53:28 +0200 Subject: [PATCH] Link right activity to launch via the notification --- src/org/linphone/LinphoneService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/linphone/LinphoneService.java b/src/org/linphone/LinphoneService.java index 1f3230252..09240f529 100644 --- a/src/org/linphone/LinphoneService.java +++ b/src/org/linphone/LinphoneService.java @@ -443,6 +443,10 @@ public final class LinphoneService extends Service implements LinphoneServiceLis public void setActivityToLaunchOnIncomingReceived(Class activity) { incomingReceivedActivity = activity; + + Intent notifIntent = new Intent(this, incomingReceivedActivity); + mNotifContentIntent = PendingIntent.getActivity(this, 0, notifIntent, 0); + mNotif.setLatestEventInfo(this, mNotificationTitle,"", mNotifContentIntent); } protected void onIncomingReceived() {