Merge "Correctly set intent to new message notification"

This commit is contained in:
Makoto Onuki 2010-11-22 11:46:00 -08:00 committed by Android (Google) Code Review
commit 79c5d35c13

View File

@ -31,7 +31,6 @@ import android.app.PendingIntent;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.graphics.Bitmap; import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.AudioManager; import android.media.AudioManager;
import android.net.Uri; import android.net.Uri;
import android.text.TextUtils; import android.text.TextUtils;
@ -186,7 +185,8 @@ public class NotificationController {
.setTicker(mContext.getString(R.string.notification_new_title)) .setTicker(mContext.getString(R.string.notification_new_title))
.setLargeIcon(senderPhoto) .setLargeIcon(senderPhoto)
.setContentTitle(notificationTitle) .setContentTitle(notificationTitle)
.setContentText(subject + "\n" + numNewMessages); .setContentText(subject + "\n" + numNewMessages)
.setContentIntent(contentIntent);
Notification notification = builder.getNotification(); Notification notification = builder.getNotification();