Skip to content

Commit 822bf60

Browse files
committed
fix: set icon color
1 parent c385d1b commit 822bf60

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/src/main/java/to/bitkit/androidServices/LightningNodeService.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ import android.app.Notification
44
import android.app.PendingIntent
55
import android.app.Service
66
import android.content.Intent
7+
import android.graphics.BitmapFactory
78
import android.os.Build
89
import android.os.IBinder
910
import androidx.annotation.RequiresApi
1011
import androidx.core.app.NotificationCompat
12+
import androidx.core.content.ContextCompat
1113
import dagger.hilt.android.AndroidEntryPoint
1214
import kotlinx.coroutines.CoroutineDispatcher
1315
import 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(

0 commit comments

Comments
 (0)