常驻通知栏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

@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle #Created by .winboll/winboll_app_build.gradle
#Sat May 03 12:42:25 GMT 2025 #Sat May 03 12:49:28 GMT 2025
stageCount=5 stageCount=5
libraryProject= libraryProject=
baseVersion=15.2 baseVersion=15.2
publishVersion=15.2.4 publishVersion=15.2.4
buildCount=13 buildCount=14
baseBetaVersion=15.2.5 baseBetaVersion=15.2.5

View File

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