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

Commit 8b04d000 authored by Yu-Han Yang's avatar Yu-Han Yang Committed by Anis Assi
Browse files

DO NOT MERGE: Remove unused intent in NiNotification

Bug: 154319182
Test: manual
Change-Id: I5958a8fb442cf4506e1824243493f91aea34a7cc
Merged-In: I5958a8fb442cf4506e1824243493f91aea34a7cc
(cherry picked from commit 2b313d61)
parent 93b58152
Loading
Loading
Loading
Loading
+1 −6
Original line number Original line Diff line number Diff line
@@ -18,7 +18,6 @@ package com.android.internal.location;


import android.app.Notification;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Context;
import android.content.Intent;
import android.content.Intent;
@@ -392,13 +391,9 @@ public class GpsNetInitiatedHandler {
            mNiNotificationBuilder.setDefaults(0);
            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))
        mNiNotificationBuilder.setTicker(getNotifTicker(notif, mContext))
                .setContentTitle(title)
                .setContentTitle(title)
                .setContentText(message)
                .setContentText(message);
                .setContentIntent(pi);


        notificationManager.notifyAsUser(null, notif.notificationId, mNiNotificationBuilder.build(),
        notificationManager.notifyAsUser(null, notif.notificationId, mNiNotificationBuilder.build(),
                UserHandle.ALL);
                UserHandle.ALL);