Merge "Post 16KB notification for all users" into main am: 0414af8d0d

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3494927

Change-Id: I19888c5dc377d54e6dd5d9ae3a64ff8e6ace616c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2025-02-18 17:20:34 -08:00
committed by Automerger Merge Worker

View File

@@ -23,6 +23,7 @@ import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.UserHandle;
import android.provider.Settings;
import androidx.annotation.NonNull;
@@ -148,7 +149,8 @@ public class PageAgnosticNotificationService extends Service {
public int onStartCommand(@Nullable Intent intent, int flags, int startId) {
Notification notification = buildNotification();
if (mNotificationManager != null) {
mNotificationManager.notify(NOTIFICATION_ID, notification);
mNotificationManager.notifyAsUser(null, NOTIFICATION_ID, notification,
UserHandle.ALL);
}
return Service.START_REDELIVER_INTENT;
}