This commit is contained in:
len 2016-03-10 16:05:26 +01:00
parent a07e4c69b6
commit ba1dca1826
11 changed files with 4 additions and 4 deletions

View file

@ -269,7 +269,7 @@ class LibraryUpdateService : Service() {
*/ */
private fun showNotification(title: String, body: String) { private fun showNotification(title: String, body: String) {
val n = notification() { val n = notification() {
setSmallIcon(R.drawable.ic_refresh_white_24dp) setSmallIcon(R.drawable.ic_refresh_white_24dp_img)
setContentTitle(title) setContentTitle(title)
setContentText(body) setContentText(body)
} }
@ -284,11 +284,11 @@ class LibraryUpdateService : Service() {
*/ */
private fun showProgressNotification(manga: Manga, current: Int, total: Int, cancelIntent: PendingIntent) { private fun showProgressNotification(manga: Manga, current: Int, total: Int, cancelIntent: PendingIntent) {
val n = notification() { val n = notification() {
setSmallIcon(R.drawable.ic_refresh_white_24dp) setSmallIcon(R.drawable.ic_refresh_white_24dp_img)
setContentTitle(manga.title) setContentTitle(manga.title)
setProgress(total, current, false) setProgress(total, current, false)
setOngoing(true) 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) notificationManager.notify(UPDATE_NOTIFICATION_ID, n)
} }
@ -303,7 +303,7 @@ class LibraryUpdateService : Service() {
val body = getUpdatedMangasBody(updates, failed) val body = getUpdatedMangasBody(updates, failed)
val n = notification() { val n = notification() {
setSmallIcon(R.drawable.ic_refresh_white_24dp) setSmallIcon(R.drawable.ic_refresh_white_24dp_img)
setContentTitle(title) setContentTitle(title)
setStyle(NotificationCompat.BigTextStyle().bigText(body)) setStyle(NotificationCompat.BigTextStyle().bigText(body))
setContentIntent(notificationIntent) setContentIntent(notificationIntent)

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 632 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 462 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 930 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 602 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB