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

Commit 111fce3d authored by Beth Thibodeau's avatar Beth Thibodeau
Browse files

Show recording notification immediately

Recently foreground service notifications have changed to have a delay
by default, so we need to use this new method on the builder to make it
show up immediately

Fixes: 173775995
Test: manual, start recording and observe notification
Change-Id: I8d1de479bbd1e229d8cf3dde2d7b6375b2ac31e2
parent bb6daa9f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -300,6 +300,7 @@ public class RecordingService extends Service implements MediaRecorder.OnInfoLis
                .setColorized(true)
                .setColor(getResources().getColor(R.color.GM2_red_700))
                .setOngoing(true)
                .setShowForegroundImmediately(true)
                .setContentIntent(
                        PendingIntent.getService(this, REQUEST_CODE, stopIntent,
                                PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE))