Skip to content

Commit

Permalink
Merge pull request #72 from cyclexuxu/icon
Browse files Browse the repository at this point in the history
change small icon for notification
  • Loading branch information
cyclexuxu authored Dec 11, 2020
2 parents 046df36 + 362c726 commit 9e07bb2
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ private void showNotification() {
notification = new NotificationCompat.Builder(getApplicationContext(), CHANNEL_ID)
.setContentTitle("hehe")
.setContentText("walkwithme")
.setSmallIcon(R.drawable.run)
.setSmallIcon(R.drawable.ic_notify)
// .setSmallIcon(R.drawable.run)
.setStyle(new NotificationCompat.InboxStyle())
.setAutoCancel(true)
.setContentIntent(pendingIntent)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ public Notification getNotification(NotificationMessage notificationMessage){
PendingIntent.FLAG_UPDATE_CURRENT);

Notification notification = new NotificationCompat.Builder(context,CHANNEL_ID)
.setSmallIcon(R.mipmap.ic_launcher_walkwithme)
// .setSmallIcon(R.mipmap.ic_launcher_walkwithme)
.setSmallIcon(R.drawable.ic_notify)
.setContentTitle(notificationMessage.title)
.setContentText(notificationMessage.body)
.setLargeIcon(Bitmap.createScaledBitmap(BitmapFactory.decodeResource(context.getResources(), notificationMessage.imgSrc),110,110,false))
Expand Down
Binary file added app/src/main/res/drawable-hdpi/ic_notify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-mdpi/ic_notify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xhdpi/ic_notify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xxhdpi/ic_notify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable-xxxhdpi/ic_notify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/cute_dog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9e07bb2

Please sign in to comment.