File tree Expand file tree Collapse file tree
app/src/main/java/to/bitkit/androidServices Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,10 +4,12 @@ import android.app.Notification
44import android.app.PendingIntent
55import android.app.Service
66import android.content.Intent
7+ import android.graphics.BitmapFactory
78import android.os.Build
89import android.os.IBinder
910import androidx.annotation.RequiresApi
1011import androidx.core.app.NotificationCompat
12+ import androidx.core.content.ContextCompat
1113import dagger.hilt.android.AndroidEntryPoint
1214import kotlinx.coroutines.CoroutineDispatcher
1315import kotlinx.coroutines.CoroutineScope
@@ -115,7 +117,8 @@ class LightningNodeService : Service() {
115117 return NotificationCompat .Builder (this , CHANNEL_ID_NODE )
116118 .setContentTitle(getString(R .string.app_name))
117119 .setContentText(contentText)
118- .setSmallIcon(R .drawable.ic_notification)
120+ .setSmallIcon(R .mipmap.ic_launcher_foreground)
121+ .setColor(ContextCompat .getColor(this , R .color.brand))
119122 .setContentIntent(pendingIntent)
120123 .setOngoing(true )
121124 .addAction(
You can’t perform that action at this time.
0 commit comments