Skip to content

Commit

Permalink
修复通知图标显示错误
Browse files Browse the repository at this point in the history
  • Loading branch information
imndx committed Aug 10, 2023
1 parent 01cbb8e commit 9d9ec82
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private void showNotification(Context context, String tag, int id, String title,


NotificationCompat.Builder builder = new NotificationCompat.Builder(context, channelId)
.setSmallIcon(R.mipmap.ic_launcher)
.setSmallIcon(R.mipmap.ic_launcher_notification)
.setAutoCancel(true)
.setCategory(CATEGORY_MESSAGE)
.setDefaults(DEFAULT_ALL);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ private Notification buildNotification(AVEngineKit.CallSession session) {
} else {
title = "VOIP...";
}
return builder.setSmallIcon(R.mipmap.ic_launcher)
return builder.setSmallIcon(R.mipmap.ic_launcher_notification)
.setContentTitle(title)
.setContentIntent(pendingIntent)
.setOngoing(true)
Expand Down
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 9d9ec82

Please sign in to comment.