mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2025-12-19 15:34:26 +01:00
Fix notification icon.
This commit is contained in:
@@ -91,7 +91,7 @@ abstract class ForegroundBleService : BleProfileService() {
|
||||
return NotificationCompat.Builder(this, CHANNEL_ID)
|
||||
.setContentTitle(getString(R.string.app_name))
|
||||
.setContentText(getString(messageResId, manager.bluetoothDevice?.name ?: "Device"))
|
||||
.setSmallIcon(R.mipmap.ic_launcher)
|
||||
.setSmallIcon(R.drawable.ic_notification_icon)
|
||||
.setColor(ContextCompat.getColor(this, R.color.md_theme_primary))
|
||||
.setContentIntent(pendingIntent)
|
||||
.build()
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="1024dp"
|
||||
android:height="1024dp"
|
||||
android:viewportWidth="1024"
|
||||
android:viewportHeight="1024">
|
||||
<path
|
||||
android:pathData="M968.2,751.4c-8,-29.2 -23.5,-56 -45.1,-77.6l-32.1,-32.1c-24,-24 -54.1,-40.3 -87.1,-47.4c-26,-5.5 -52.8,-5.1 -78.4,1.2l-96.4,-96.4c0,0 0,0 0,0l-6.5,-6.5l253.1,-259.6c7.9,-8 26.4,-32.3 40.5,-54.8c8.9,-14.1 15.4,-26.5 19.3,-36.6c8.5,-21.7 6.7,-38.8 -5.1,-50.7c-11.6,-11.6 -28.5,-13.6 -50.3,-5.8c-10.4,3.7 -23,9.9 -37.5,18.3c-22.3,13 -48.4,31.2 -57,39.9c-0.1,0.1 -0.2,0.2 -0.3,0.3L532.8,402.8L430.4,300.5c6.3,-25.6 6.8,-52.4 1.2,-78.4c-7,-33 -23.4,-63.1 -47.4,-87.1l-32.1,-32.1c-21.5,-21.5 -48.3,-37.1 -77.6,-45.1c-28.3,-7.7 -58.4,-8.2 -86.9,-1.3c-10,2.4 -18,10 -20.8,20c-2.8,9.9 0,20.6 7.3,27.9l56.9,56.9c12.9,12.9 21.1,29.4 22.7,45.3c1.4,14 -2.4,26.3 -10.7,34.6c-8.3,8.3 -20.6,12.1 -34.6,10.7c-16,-1.6 -32.5,-9.9 -45.3,-22.7l-56.9,-56.9c-7.3,-7.3 -18,-10.1 -27.9,-7.3c-9.9,2.8 -17.6,10.8 -20,20.8c-6.8,28.5 -6.4,58.6 1.3,86.9c8,29.2 23.5,56 45.1,77.6l32.1,32.1c24,24 54.1,40.3 87.1,47.4c26,5.5 52.8,5.1 78.4,-1.2l104,104l-64.7,66.4l-9.8,-9.8c-11.1,-11.1 -29.2,-11.1 -40.3,0L118.2,762.4c-41.4,41.4 -41.4,108.7 0,150.1c20.7,20.7 47.9,31 75,31s54.3,-10.3 75,-31L441.7,739c11.1,-11.1 11.1,-29.2 0,-40.3l-10,-10l64.7,-66.4l101.2,101.2c-6.3,25.6 -6.8,52.4 -1.2,78.4c7,33 23.4,63.1 47.4,87.1l32.1,32.1c21.5,21.5 48.3,37.1 77.6,45.1c15,4.1 30.6,6.1 46.1,6.1c13.7,0 27.4,-1.6 40.8,-4.8c10,-2.4 18,-10 20.8,-20c2.8,-9.9 0,-20.6 -7.3,-27.9l-56.9,-56.9c-12.9,-12.9 -21.1,-29.4 -22.7,-45.3c-1.4,-14 2.4,-26.3 10.7,-34.6c8.3,-8.3 20.6,-12.1 34.6,-10.7c16,1.6 32.5,9.9 45.3,22.7l56.9,56.9c7.3,7.3 18,10.1 27.9,7.3c9.9,-2.8 17.6,-10.8 20,-20.8C976.4,809.7 975.9,779.7 968.2,751.4zM826,183.6c2.7,-2.5 16.4,-13 34.7,-24.5c-12,17.9 -23,31.3 -25.4,33.8c-0.1,0.1 -0.2,0.2 -0.3,0.3L582.4,452.4l-9.3,-9.3L826,183.6zM228,872.1c-9.6,9.6 -22.1,14.4 -34.7,14.4c-12.6,0 -25.1,-4.8 -34.7,-14.4c-19.1,-19.1 -19.1,-50.3 0,-69.4l153.3,-153.3l69.4,69.4L228,872.1zM382.1,639.1l64.7,-66.4l9.3,9.3l-64.7,66.4L382.1,639.1zM905.1,754.6c-22.3,-22.3 -50.7,-36.2 -79.9,-39.2c-31.4,-3.2 -60,6.5 -80.6,27.1c-20.6,20.6 -30.2,49.2 -27.1,80.6c2.9,29.2 16.8,57.6 39.2,79.9l6.7,6.7c-17.5,-5.6 -33.6,-15.4 -47.2,-28.9l-32.1,-32.1c-32.2,-32.2 -43,-80.7 -27.5,-123.6c3.8,-10.4 1.2,-22 -6.6,-29.9L535.3,580.6c0,0 0,0 0,0L330.7,376.1c-7.8,-7.8 -19.5,-10.4 -29.9,-6.6c-42.9,15.5 -91.4,4.8 -123.6,-27.5l-32.1,-32.1c-13.5,-13.5 -23.3,-29.7 -28.9,-47.2l6.7,6.7c22.3,22.3 50.7,36.2 79.9,39.2c31.4,3.2 60,-6.5 80.6,-27.1c20.6,-20.6 30.2,-49.2 27.1,-80.6c-2.9,-29.2 -16.8,-57.6 -39.2,-79.9l-6.7,-6.7c17.5,5.6 33.6,15.4 47.2,28.9l32.1,32.1c32.2,32.2 43,80.7 27.5,123.6c-3.8,10.4 -1.2,22 6.6,29.9l210.8,210.8c0,0 0,0 0,0l108.4,108.4c7.8,7.8 19.5,10.4 29.9,6.6c42.9,-15.5 91.4,-4.7 123.6,27.5l32.1,32.1c13.5,13.5 23.3,29.7 28.9,47.2L905.1,754.6z"
|
||||
android:fillColor="#ffffff"/>
|
||||
</vector>
|
||||
Reference in New Issue
Block a user