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

Commit fec9ff30 authored by Daniel Sandler's avatar Daniel Sandler Committed by android-build-merger
Browse files

Merge "Use correct timebase in fg service notifications." into oc-dev am: 630e7841

am: 2fe945c3

Change-Id: I5d851b00b92c88bf9b23bbdd021c207714abd6d9
parents ce8b01a5 2fe945c3
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -813,7 +813,8 @@ public final class ActiveServices {
            String title;
            String msg;
            String[] pkgs;
            long oldestStartTime = System.currentTimeMillis(); // now
            final long nowElapsed = SystemClock.elapsedRealtime();
            long oldestStartTime = nowElapsed;
            if (active.size() == 1) {
                intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
                intent.setData(Uri.fromParts("package", active.get(0).mPackageName, null));
@@ -846,8 +847,8 @@ public final class ActiveServices {
                            .addExtras(notificationBundle)
                            .setSmallIcon(R.drawable.stat_sys_vitals)
                            .setOngoing(true)
                            .setShowWhen(oldestStartTime > 0)
                            .setWhen(oldestStartTime)
                            .setShowWhen(oldestStartTime < nowElapsed)
                            .setWhen(System.currentTimeMillis() - (nowElapsed - oldestStartTime))
                            .setColor(context.getColor(
                                    com.android.internal.R.color.system_notification_accent_color))
                            .setContentTitle(title)