常驻通知栏UI优化。

This commit is contained in:
ZhanGSKen
2025-05-03 16:44:32 +08:00
parent 38e4deb425
commit 640f0c39e9
2 changed files with 5 additions and 4 deletions

View File

@@ -55,8 +55,9 @@ public class NotificationUtil {
Notification mForegroundNotification = new Notification.Builder(service, szServiceChannelID)
.setAutoCancel(true)
.setContentTitle(service.getString(R.string.app_name))
.setContentText(service.TAG + " is started.")
//.setContentTitle(service.getString(R.string.app_name))
.setContentTitle(service.TAG + " is started.")
//.setContentText(service.TAG + " is started.")
.setWhen(System.currentTimeMillis())
.setSmallIcon(R.drawable.ic_launcher)
//设置红色