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

Commit 5e72ff77 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Remove unused intent in NiNotification" into rvc-dev am: e9381495 am:...

Merge "Remove unused intent in NiNotification" into rvc-dev am: e9381495 am: ebaf86be am: c6e39e74 am: 6200c35d

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

Change-Id: I23e0430e37ab8714fb35389d269dc7c8a6c99986
parents af50a4e6 6200c35d
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -18,7 +18,6 @@ package com.android.internal.location;

import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.compat.annotation.UnsupportedAppUsage;
import android.content.BroadcastReceiver;
import android.content.Context;
@@ -415,13 +414,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);