Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11781218 authored by Yu-Han Yang's avatar Yu-Han Yang Committed by Automerger Merge Worker
Browse files

Remove unused intent in NiNotification am: ef5279d9 am: f6a8668a am: 0158fc65

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

Change-Id: I4dc9f1c4af78122ff13633babd2ba794b890bfe1
parents 536cef1b 0158fc65
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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);