Skip to content

Commit a023f8d

Browse files
authored
ProgressRepository: Fix incorrect notification style on failure (#150)
1 parent 7a10243 commit a023f8d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/src/main/java/net/rpcsx/ProgressRepository.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,11 @@ class ProgressRepository {
127127
notificationManager.notify(requestId.toInt(), builder.build())
128128
}
129129
} else if (value < 0) {
130-
val contentText = text ?: "Installation failed"
130+
val contentText = text ?: context.getString(R.string.unexpected_error)
131131
builder.setContentText(contentText)
132+
.setPriority(NotificationCompat.PRIORITY_HIGH)
133+
.setProgress(0, 0, false)
134+
.setOngoing(false)
132135
AlertDialogQueue.showDialog(title, contentText)
133136
notificationManager.notify(requestId.toInt(), builder.build())
134137
} else {

0 commit comments

Comments
 (0)