Fix #206
|
@ -269,7 +269,7 @@ class LibraryUpdateService : Service() {
|
|||
*/
|
||||
private fun showNotification(title: String, body: String) {
|
||||
val n = notification() {
|
||||
setSmallIcon(R.drawable.ic_refresh_white_24dp)
|
||||
setSmallIcon(R.drawable.ic_refresh_white_24dp_img)
|
||||
setContentTitle(title)
|
||||
setContentText(body)
|
||||
}
|
||||
|
@ -284,11 +284,11 @@ class LibraryUpdateService : Service() {
|
|||
*/
|
||||
private fun showProgressNotification(manga: Manga, current: Int, total: Int, cancelIntent: PendingIntent) {
|
||||
val n = notification() {
|
||||
setSmallIcon(R.drawable.ic_refresh_white_24dp)
|
||||
setSmallIcon(R.drawable.ic_refresh_white_24dp_img)
|
||||
setContentTitle(manga.title)
|
||||
setProgress(total, current, false)
|
||||
setOngoing(true)
|
||||
addAction(R.drawable.ic_clear_black_24dp, getString(R.string.action_cancel), cancelIntent)
|
||||
addAction(R.drawable.ic_clear_grey_24dp_img, getString(R.string.action_cancel), cancelIntent)
|
||||
}
|
||||
notificationManager.notify(UPDATE_NOTIFICATION_ID, n)
|
||||
}
|
||||
|
@ -303,7 +303,7 @@ class LibraryUpdateService : Service() {
|
|||
val body = getUpdatedMangasBody(updates, failed)
|
||||
|
||||
val n = notification() {
|
||||
setSmallIcon(R.drawable.ic_refresh_white_24dp)
|
||||
setSmallIcon(R.drawable.ic_refresh_white_24dp_img)
|
||||
setContentTitle(title)
|
||||
setStyle(NotificationCompat.BigTextStyle().bigText(body))
|
||||
setContentIntent(notificationIntent)
|
||||
|
|
BIN
app/src/main/res/drawable-hdpi/ic_clear_grey_24dp_img.png
Normal file
After Width: | Height: | Size: 281 B |
BIN
app/src/main/res/drawable-hdpi/ic_refresh_white_24dp_img.png
Normal file
After Width: | Height: | Size: 476 B |
BIN
app/src/main/res/drawable-mdpi/ic_clear_grey_24dp_img.png
Normal file
After Width: | Height: | Size: 211 B |
BIN
app/src/main/res/drawable-mdpi/ic_refresh_white_24dp_img.png
Normal file
After Width: | Height: | Size: 323 B |
BIN
app/src/main/res/drawable-xhdpi/ic_clear_grey_24dp_img.png
Normal file
After Width: | Height: | Size: 333 B |
BIN
app/src/main/res/drawable-xhdpi/ic_refresh_white_24dp_img.png
Normal file
After Width: | Height: | Size: 632 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_clear_grey_24dp_img.png
Normal file
After Width: | Height: | Size: 462 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_refresh_white_24dp_img.png
Normal file
After Width: | Height: | Size: 930 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_clear_grey_24dp_img.png
Normal file
After Width: | Height: | Size: 602 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_refresh_white_24dp_img.png
Normal file
After Width: | Height: | Size: 1.2 KiB |