From 968d9cff83a590b7c48e958ab20ac0677965d451 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 11 Apr 2022 22:47:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/service/DownloadService.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/service/DownloadService.kt b/app/src/main/java/io/legado/app/service/DownloadService.kt index 1c96179cd..1677d2d65 100644 --- a/app/src/main/java/io/legado/app/service/DownloadService.kt +++ b/app/src/main/java/io/legado/app/service/DownloadService.kt @@ -186,7 +186,7 @@ class DownloadService : BaseService() { private fun upSummaryNotification() { val notification = NotificationCompat.Builder(this, AppConst.channelIdDownload) .setSmallIcon(R.drawable.ic_download) - .setContentTitle(getString(R.string.action_download)) + .setSubText(getString(R.string.action_download)) .setGroup(groupKey) .setGroupSummary(true) .setOngoing(true) @@ -200,7 +200,8 @@ class DownloadService : BaseService() { private fun upDownloadNotification(downloadId: Long, content: String, max: Int, progress: Int) { val notification = NotificationCompat.Builder(this, AppConst.channelIdDownload) .setSmallIcon(R.drawable.ic_download) - .setContentTitle(getString(R.string.action_download)) + .setSubText(getString(R.string.action_download)) + .setContentTitle(content) .setContentIntent( servicePendingIntent(IntentAction.play) { putExtra("downloadId", downloadId) @@ -212,7 +213,6 @@ class DownloadService : BaseService() { } ) .setVisibility(NotificationCompat.VISIBILITY_PUBLIC) - .setContentText(content) .setProgress(max, progress, false) .setGroup(groupKey) .build()