Skip to content

Commit 147e15d

Browse files
committed
Fix bug
We should assign the pendingIntent to notification.contentIntent
1 parent 1415ec8 commit 147e15d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

de.vogella.android.notification/src/de/vogella/android/notification/CallNotification.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void createNotification() {
4848
Intent intent = new Intent(this, TargetActivity.class);
4949
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0,
5050
intent, PendingIntent.FLAG_CANCEL_CURRENT);
51-
notification.contentIntent = intent;
51+
notification.contentIntent = pendingIntent;
5252
notificationManager.notify(0, notification);
5353

5454
// Wir simulieren mal eine lange Aktion
@@ -58,4 +58,4 @@ public void createNotification() {
5858
}
5959
}
6060
}
61-
}
61+
}

0 commit comments

Comments
 (0)