Link right activity to launch via the notification
This commit is contained in:
parent
4d21042082
commit
fc93e7e661
1 changed files with 4 additions and 0 deletions
|
@ -443,6 +443,10 @@ public final class LinphoneService extends Service implements LinphoneServiceLis
|
||||||
|
|
||||||
public void setActivityToLaunchOnIncomingReceived(Class<? extends Activity> activity) {
|
public void setActivityToLaunchOnIncomingReceived(Class<? extends Activity> activity) {
|
||||||
incomingReceivedActivity = activity;
|
incomingReceivedActivity = activity;
|
||||||
|
|
||||||
|
Intent notifIntent = new Intent(this, incomingReceivedActivity);
|
||||||
|
mNotifContentIntent = PendingIntent.getActivity(this, 0, notifIntent, 0);
|
||||||
|
mNotif.setLatestEventInfo(this, mNotificationTitle,"", mNotifContentIntent);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void onIncomingReceived() {
|
protected void onIncomingReceived() {
|
||||||
|
|
Loading…
Reference in a new issue