Remove unused intent in NiNotification am: ef5279d9f5 am: f6a8668ade

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12173663

Change-Id: I010c970ee01e9397785788b6f64afecd752c6550
This commit is contained in:
Yu-Han Yang
2020-07-30 21:43:27 +00:00
committed by Automerger Merge Worker

View File

@@ -21,7 +21,6 @@ import java.util.concurrent.TimeUnit;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
@@ -402,13 +401,9 @@ public class GpsNetInitiatedHandler {
mNiNotificationBuilder.setDefaults(0);
}
// if not to popup dialog immediately, pending intent will open the dialog
Intent intent = !mPopupImmediately ? getDlgIntent(notif) : new Intent();
PendingIntent pi = PendingIntent.getBroadcast(mContext, 0, intent, 0);
mNiNotificationBuilder.setTicker(getNotifTicker(notif, mContext))
.setContentTitle(title)
.setContentText(message)
.setContentIntent(pi);
.setContentText(message);
notificationManager.notifyAsUser(null, notif.notificationId, mNiNotificationBuilder.build(),
UserHandle.ALL);