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

Commit 31b4c5b6 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[am] Add logging for FGS type change" into main

parents cd767664 0d1b245f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2625,6 +2625,13 @@ public final class ActiveServices {
                    }
                    notification.flags |= Notification.FLAG_FOREGROUND_SERVICE;
                    r.foregroundNoti = notification;
                    if (r.isForeground && foregroundServiceType != previousFgsType) {
                        // An already foreground service is being started with a different fgs type
                        // which results in the type changing without typical startForeground
                        // logging.
                        Slog.w(TAG_SERVICE, "FGS type change for " + r.shortInstanceName
                                + " from " + previousFgsType + " to " + foregroundServiceType);
                    }
                    mAm.mProcessStateController.setForegroundServiceType(r, foregroundServiceType);
                    if (!r.isForeground) {
                        final ServiceMap smap = getServiceMapLocked(r.userId);