diff options
| author | 2020-07-30 21:24:47 +0000 | |
|---|---|---|
| committer | 2020-07-30 21:24:47 +0000 | |
| commit | f6a8668ade1d2805ef0a2227c4e28de9d2f37d11 (patch) | |
| tree | 5f4f0c21a9ef9f24ef4cc2cb01fff63fe09d8e0a | |
| parent | ee631a72c3f9191f1f1308f86d75b9e4e73e9703 (diff) | |
| parent | ef5279d9f589d6d626863551cfd0a35cc2633ae7 (diff) | |
Remove unused intent in NiNotification am: ef5279d9f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12173663
Change-Id: I22a6ed181b8fbfc334a41da01d0f68edfbae1706
| -rw-r--r-- | location/java/com/android/internal/location/GpsNetInitiatedHandler.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/location/java/com/android/internal/location/GpsNetInitiatedHandler.java b/location/java/com/android/internal/location/GpsNetInitiatedHandler.java index 2c8d9ee5d32c..108139e33689 100644 --- a/location/java/com/android/internal/location/GpsNetInitiatedHandler.java +++ b/location/java/com/android/internal/location/GpsNetInitiatedHandler.java @@ -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); |