mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 11:38:51 +01:00
Update styling for progress notification
This commit is contained in:
@@ -83,7 +83,9 @@ class RestoreBackupService : Service() {
|
||||
.subscribe { progress ->
|
||||
when (progress) {
|
||||
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())
|
||||
}
|
||||
|
||||
|
||||
@@ -386,7 +386,11 @@ class NotificationManagerImpl @Inject constructor(
|
||||
|
||||
return NotificationCompat.Builder(context, BACKUP_RESTORE_CHANNEL_ID)
|
||||
.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)
|
||||
.setColor(colors.theme().theme)
|
||||
.setCategory(NotificationCompat.CATEGORY_PROGRESS)
|
||||
.setPriority(NotificationCompat.PRIORITY_MIN)
|
||||
.setProgress(0, 0, true)
|
||||
.setOngoing(true)
|
||||
|
||||
Reference in New Issue
Block a user