Skip to content

Commit 591e4ff

Browse files
committed
fix: set icon notification without border
1 parent 822bf60 commit 591e4ff

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import android.app.Notification
44
import android.app.PendingIntent
55
import android.app.Service
66
import android.content.Intent
7-
import android.graphics.BitmapFactory
87
import android.os.Build
98
import android.os.IBinder
109
import androidx.annotation.RequiresApi
@@ -117,7 +116,7 @@ class LightningNodeService : Service() {
117116
return NotificationCompat.Builder(this, CHANNEL_ID_NODE)
118117
.setContentTitle(getString(R.string.app_name))
119118
.setContentText(contentText)
120-
.setSmallIcon(R.mipmap.ic_launcher_foreground)
119+
.setSmallIcon(R.drawable.ic_notification_no_border)
121120
.setColor(ContextCompat.getColor(this, R.color.brand))
122121
.setContentIntent(pendingIntent)
123122
.setOngoing(true)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="29dp"
3+
android:height="27dp"
4+
android:viewportWidth="29"
5+
android:viewportHeight="27">
6+
<path
7+
android:pathData="M20.226,15.982C20.226,21.562 15.703,26.086 10.123,26.086C4.543,26.086 0.02,21.562 0.02,15.982C0.02,10.403 4.543,5.879 10.123,5.879C15.703,5.879 20.226,10.403 20.226,15.982ZM10.123,23.635C14.349,23.635 17.775,20.209 17.775,15.982C17.775,11.756 14.349,8.33 10.123,8.33C5.897,8.33 2.471,11.756 2.471,15.982C2.471,20.209 5.897,23.635 10.123,23.635Z"
8+
android:fillColor="#000000"
9+
android:fillType="evenOdd"/>
10+
<path
11+
android:pathData="M9.063,10.27L11.833,0H21.562C25.188,0 28.471,2.764 28.471,6.516C28.471,7.907 28.214,9.396 27.407,10.682C27.316,10.827 27.22,10.966 27.119,11.101C27.23,11.257 27.334,11.421 27.431,11.592C28.21,12.962 28.372,14.522 28.225,16.025C28.06,17.698 27.383,19.323 26.09,20.538C24.781,21.767 23.027,22.401 21.046,22.401H15.526L16.451,19.32C16.627,18.733 16.722,18.111 16.722,17.466C16.722,14.401 14.539,11.706 11.397,10.882L9.063,10.27ZM25.289,12.68C25.208,12.548 25.119,12.421 25.021,12.301C24.562,11.74 23.912,11.315 23.053,11.043L23.052,11.043C23.044,11.04 23.037,11.038 23.029,11.036C23.027,11.035 23.025,11.035 23.023,11.034C23.022,11.033 23.021,11.033 23.019,11.033C23.009,11.032 23.001,11.023 23.001,11.013C23.001,11.008 23.003,11.003 23.007,11C23.01,10.996 23.014,10.994 23.019,10.993C23.021,10.993 23.022,10.993 23.023,10.993C23.026,10.992 23.029,10.991 23.032,10.991C23.927,10.787 24.597,10.379 25.077,9.815C25.173,9.703 25.261,9.585 25.341,9.461C25.851,8.678 26.071,7.664 26.071,6.516C26.071,4.268 24.052,2.394 21.562,2.394H13.673L12.007,8.567C12.045,8.576 12.081,8.586 12.118,8.596C16.245,9.545 19.122,12.933 19.122,17.466C19.122,17.515 19.122,17.564 19.121,17.613C19.108,18.442 18.979,19.245 18.75,20.007H21.046C21.109,20.007 21.171,20.006 21.233,20.004C24.028,19.928 25.606,18.128 25.836,15.791C25.958,14.551 25.789,13.5 25.289,12.68Z"
12+
android:fillColor="#000000"
13+
android:fillType="evenOdd"/>
14+
<path
15+
android:pathData="M25.021,12.301C25.119,12.422 25.208,12.548 25.289,12.68C25.789,13.5 25.958,14.551 25.836,15.791C25.606,18.128 24.028,19.928 21.233,20.004C21.171,20.006 21.109,20.007 21.046,20.007H18.75C18.979,19.245 19.108,18.442 19.121,17.613C19.122,17.564 19.122,17.515 19.122,17.466C19.122,12.933 16.245,9.545 12.118,8.597C12.081,8.586 12.045,8.576 12.007,8.567L13.673,2.394H21.562C24.052,2.394 26.071,4.268 26.071,6.516C26.071,7.664 25.851,8.678 25.341,9.461C25.261,9.585 25.173,9.703 25.077,9.815C24.597,10.379 23.927,10.787 23.032,10.991L23.027,10.992L23.023,10.993L23.019,10.994C23.014,10.994 23.01,10.996 23.007,11C23.003,11.003 23.001,11.008 23.001,11.013C23.001,11.023 23.009,11.032 23.019,11.033L23.023,11.034L23.029,11.036C23.037,11.038 23.044,11.041 23.052,11.043L23.053,11.043C23.912,11.315 24.562,11.74 25.021,12.301Z"
16+
android:fillColor="#ffffff"/>
17+
<path
18+
android:pathData="M17.775,15.983C17.775,20.209 14.349,23.635 10.123,23.635C5.897,23.635 2.471,20.209 2.471,15.983C2.471,11.756 5.897,8.33 10.123,8.33C14.349,8.33 17.775,11.756 17.775,15.983Z"
19+
android:fillColor="#FF4400"/>
20+
</vector>

0 commit comments

Comments
 (0)