Skip to content

Commit

Permalink
styles: update image resources
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyma committed Jan 22, 2022
1 parent 05919f0 commit 5bd422a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class BubbleBuilder(

@RequiresApi(Build.VERSION_CODES.O)
fun build(): Notification {
val icon = Icon.createWithResource(context, R.drawable.ic_router_white_24dp)
val icon = Icon.createWithResource(context, R.drawable.ic_sharp_account_circle_24)
val notificationBuilder = getNotificationBuilder()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
val person = Person.Builder()
Expand Down Expand Up @@ -68,7 +68,7 @@ class BubbleBuilder(
// notification works as a normal notification as well.
with(notificationBuilder) {
setContentText(MESSAGE_FOR_BUBBLE_DISABLE)
setSmallIcon(R.drawable.ic_router_white_24dp)
setSmallIcon(R.drawable.ic_round_adb_24)
setCategory(Notification.CATEGORY_MESSAGE)
setContentIntent(getPendingIntent())
setShowWhen(true)
Expand Down
5 changes: 5 additions & 0 deletions library/src/main/res/drawable/ic_round_adb_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector android:height="24dp" android:tint="#808080"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M5,16c0,3.87 3.13,7 7,7s7,-3.13 7,-7v-4L5,12v4zM16.12,4.37l2.1,-2.1 -0.82,-0.83 -2.3,2.31C14.16,3.28 13.12,3 12,3s-2.16,0.28 -3.09,0.75L6.6,1.44l-0.82,0.83 2.1,2.1C6.14,5.64 5,7.68 5,10v1h14v-1c0,-2.32 -1.14,-4.36 -2.88,-5.63zM9,9c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1 1,0.45 1,1 -0.45,1 -1,1zM15,9c-0.55,0 -1,-0.45 -1,-1s0.45,-1 1,-1 1,0.45 1,1 -0.45,1 -1,1z"/>
</vector>
5 changes: 0 additions & 5 deletions library/src/main/res/drawable/ic_router_white_24dp.xml

This file was deleted.

5 changes: 5 additions & 0 deletions library/src/main/res/drawable/ic_sharp_account_circle_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector android:height="24dp" android:tint="#808080"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,5c1.66,0 3,1.34 3,3s-1.34,3 -3,3 -3,-1.34 -3,-3 1.34,-3 3,-3zM12,19.2c-2.5,0 -4.71,-1.28 -6,-3.22 0.03,-1.99 4,-3.08 6,-3.08 1.99,0 5.97,1.09 6,3.08 -1.29,1.94 -3.5,3.22 -6,3.22z"/>
</vector>

0 comments on commit 5bd422a

Please sign in to comment.