summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yu-Han Yang <yuhany@google.com> 2020-07-30 22:06:36 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2020-07-30 22:06:36 +0000
commit11781218c220c6c413641e48a32e3e83d4d301e6 (patch)
tree404883654e55171f25509370fe9cf1c479bbff8e
parent536cef1b06ed9ed2a13506ce18bdaef8fd87c4b4 (diff)
parent0158fc6535c446963686027cddf301dcc02762d3 (diff)
Remove unused intent in NiNotification am: ef5279d9f5 am: f6a8668ade am: 0158fc6535
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12173663 Change-Id: I4dc9f1c4af78122ff13633babd2ba794b890bfe1
-rw-r--r--location/java/com/android/internal/location/GpsNetInitiatedHandler.java7
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 4e2f28b24305..81e68d3307e7 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;
@@ -399,13 +398,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);