From 8d3ef1d01e1d3ae548366fe7961af23ed66f1da5 Mon Sep 17 00:00:00 2001 From: Makoto Onuki Date: Mon, 22 Nov 2010 11:36:17 -0800 Subject: [PATCH] Correctly set intent to new message notification Bug 3219763 Change-Id: I7826e762713228ee4ca1ca1d57b4d7603df81a66 --- src/com/android/email/NotificationController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/email/NotificationController.java b/src/com/android/email/NotificationController.java index 4ff00c1c3..0a120a367 100644 --- a/src/com/android/email/NotificationController.java +++ b/src/com/android/email/NotificationController.java @@ -31,7 +31,6 @@ import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; -import android.graphics.BitmapFactory; import android.media.AudioManager; import android.net.Uri; import android.text.TextUtils; @@ -186,7 +185,8 @@ public class NotificationController { .setTicker(mContext.getString(R.string.notification_new_title)) .setLargeIcon(senderPhoto) .setContentTitle(notificationTitle) - .setContentText(subject + "\n" + numNewMessages); + .setContentText(subject + "\n" + numNewMessages) + .setContentIntent(contentIntent); Notification notification = builder.getNotification();