|
|
@ -342,7 +342,7 @@ class BackupRestoreService : Service() {
|
|
|
|
.setOngoing(true)
|
|
|
|
.setOngoing(true)
|
|
|
|
.setOnlyAlertOnce(true)
|
|
|
|
.setOnlyAlertOnce(true)
|
|
|
|
.setAutoCancel(false)
|
|
|
|
.setAutoCancel(false)
|
|
|
|
.setColor(ContextCompat.getColor(this, R.color.colorAccent))
|
|
|
|
.setColor(ContextCompat.getColor(this, R.color.colorAccentLight))
|
|
|
|
.addAction(R.drawable.ic_clear_grey_24dp_img, getString(android.R.string.cancel), cancelIntent)
|
|
|
|
.addAction(R.drawable.ic_clear_grey_24dp_img, getString(android.R.string.cancel), cancelIntent)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -396,7 +396,7 @@ class BackupRestoreService : Service() {
|
|
|
|
.setStyle(NotificationCompat.BigTextStyle().bigText(restoreString))
|
|
|
|
.setStyle(NotificationCompat.BigTextStyle().bigText(restoreString))
|
|
|
|
.setSmallIcon(R.drawable.ic_tachi)
|
|
|
|
.setSmallIcon(R.drawable.ic_tachi)
|
|
|
|
.setPriority(NotificationCompat.PRIORITY_HIGH)
|
|
|
|
.setPriority(NotificationCompat.PRIORITY_HIGH)
|
|
|
|
.setColor(ContextCompat.getColor(this, R.color.colorAccent))
|
|
|
|
.setColor(ContextCompat.getColor(this, R.color.colorAccentLight))
|
|
|
|
if (errors.size > 0 && !path.isNullOrEmpty() && !file.isNullOrEmpty()) {
|
|
|
|
if (errors.size > 0 && !path.isNullOrEmpty() && !file.isNullOrEmpty()) {
|
|
|
|
resultNotification.addAction(R.drawable.ic_clear_grey_24dp_img, getString(R.string
|
|
|
|
resultNotification.addAction(R.drawable.ic_clear_grey_24dp_img, getString(R.string
|
|
|
|
.notification_action_error_log), getErrorLogIntent(path, file))
|
|
|
|
.notification_action_error_log), getErrorLogIntent(path, file))
|
|
|
|