优化常驻通知栏显示UI

This commit is contained in:
ZhanGSKen
2025-05-03 14:19:32 +08:00
parent 482c007481
commit 512c321b76
2 changed files with 4 additions and 4 deletions

View File

@@ -83,8 +83,8 @@ public class NotificationHelper {
Notification notification = new NotificationCompat.Builder(mContext, CHANNEL_ID_FOREGROUND)
.setSmallIcon(R.drawable.ic_launcher)
.setLargeIcon(BitmapFactory.decodeResource(mContext.getResources(), R.drawable.ic_launcher))
.setContentTitle(title)
.setContentText(content)
.setContentTitle(title + "\n" + content)
//.setContentText(content)
.setContentIntent(pendingIntent)
.setPriority(NotificationCompat.PRIORITY_LOW)
.setOngoing(true)