Skip to content

Commit

Permalink
Add green background for notification icon + remove unused strings
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Jun 2, 2024
1 parent 893f5f3 commit d52bba5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions app/android/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
<?xml version='1.0' encoding='utf-8'?>
<resources>
<string name="notification_title">Mergin Maps is tracking position</string>
<string name="notification_message">Your position is being recorded</string>
<string name="ticker_text">Position tracking</string>
</resources>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ public int onStartCommand( Intent intent, int flags, int startId ) {

Notification notification = new Notification.Builder( this, CHANNEL_ID )
.setSmallIcon( R.drawable.ic_notification )
.setContentTitle( "Tracking" )
.setContentTitle( "Tracking in progress" )
.setColor( getResources().getColor( R.color.grassColor ) )
.setForegroundServiceBehavior( Notification.FOREGROUND_SERVICE_IMMEDIATE )
.setContentIntent( pendingIntent )
.build();
Expand Down

0 comments on commit d52bba5

Please sign in to comment.