mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-22 21:58:53 +01:00
Update styling for progress notification
This commit is contained in:
@@ -83,7 +83,9 @@ class RestoreBackupService : Service() {
|
|||||||
.subscribe { progress ->
|
.subscribe { progress ->
|
||||||
when (progress) {
|
when (progress) {
|
||||||
is BackupRepository.Progress.Running -> {
|
is BackupRepository.Progress.Running -> {
|
||||||
notification.setProgress(100, progress.progress, false)
|
notification
|
||||||
|
.setProgress(100, progress.progress, false)
|
||||||
|
.setContentText("${progress.progress}%")
|
||||||
notificationManager.notify(NOTIFICATION_ID, notification.build())
|
notificationManager.notify(NOTIFICATION_ID, notification.build())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -386,7 +386,11 @@ class NotificationManagerImpl @Inject constructor(
|
|||||||
|
|
||||||
return NotificationCompat.Builder(context, BACKUP_RESTORE_CHANNEL_ID)
|
return NotificationCompat.Builder(context, BACKUP_RESTORE_CHANNEL_ID)
|
||||||
.setContentTitle(context.getString(R.string.backup_restoring))
|
.setContentTitle(context.getString(R.string.backup_restoring))
|
||||||
|
.setShowWhen(false)
|
||||||
|
.setWhen(System.currentTimeMillis()) // Set this anyway in case it's shown
|
||||||
.setSmallIcon(R.drawable.ic_file_download_black_24dp)
|
.setSmallIcon(R.drawable.ic_file_download_black_24dp)
|
||||||
|
.setColor(colors.theme().theme)
|
||||||
|
.setCategory(NotificationCompat.CATEGORY_PROGRESS)
|
||||||
.setPriority(NotificationCompat.PRIORITY_MIN)
|
.setPriority(NotificationCompat.PRIORITY_MIN)
|
||||||
.setProgress(0, 0, true)
|
.setProgress(0, 0, true)
|
||||||
.setOngoing(true)
|
.setOngoing(true)
|
||||||
|
|||||||
Reference in New Issue
Block a user