常驻通知栏UI优化。

This commit is contained in:
ZhanGSKen
2025-05-03 20:50:53 +08:00
parent b2555ebfd3
commit ae8da772c0
2 changed files with 5 additions and 4 deletions

View File

@@ -103,8 +103,9 @@ 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)
.setContentTitle(content)
//.setContentText(content)
.setContentIntent(pendingIntent)
.setPriority(NotificationCompat.PRIORITY_LOW)
.setOngoing(true)