Replace raster icons
|
@ -100,7 +100,7 @@ internal class DownloadNotifier(private val context: Context) {
|
||||||
setContentIntent(NotificationHandler.openDownloadManagerPendingActivity(context))
|
setContentIntent(NotificationHandler.openDownloadManagerPendingActivity(context))
|
||||||
isDownloading = true
|
isDownloading = true
|
||||||
// Pause action
|
// Pause action
|
||||||
addAction(R.drawable.ic_av_pause_grey_24dp_img,
|
addAction(R.drawable.ic_pause_white_24dp,
|
||||||
context.getString(R.string.action_pause),
|
context.getString(R.string.action_pause),
|
||||||
NotificationReceiver.pauseDownloadsPendingBroadcast(context))
|
NotificationReceiver.pauseDownloadsPendingBroadcast(context))
|
||||||
}
|
}
|
||||||
|
@ -124,18 +124,18 @@ internal class DownloadNotifier(private val context: Context) {
|
||||||
with(notification) {
|
with(notification) {
|
||||||
setContentTitle(context.getString(R.string.chapter_paused))
|
setContentTitle(context.getString(R.string.chapter_paused))
|
||||||
setContentText(context.getString(R.string.download_notifier_download_paused))
|
setContentText(context.getString(R.string.download_notifier_download_paused))
|
||||||
setSmallIcon(R.drawable.ic_av_pause_grey_24dp_img)
|
setSmallIcon(R.drawable.ic_pause_white_24dp)
|
||||||
setAutoCancel(false)
|
setAutoCancel(false)
|
||||||
setProgress(0, 0, false)
|
setProgress(0, 0, false)
|
||||||
clearActions()
|
clearActions()
|
||||||
// Open download manager when clicked
|
// Open download manager when clicked
|
||||||
setContentIntent(NotificationHandler.openDownloadManagerPendingActivity(context))
|
setContentIntent(NotificationHandler.openDownloadManagerPendingActivity(context))
|
||||||
// Resume action
|
// Resume action
|
||||||
addAction(R.drawable.ic_av_play_arrow_grey_img,
|
addAction(R.drawable.ic_play_arrow_white_24dp,
|
||||||
context.getString(R.string.action_resume),
|
context.getString(R.string.action_resume),
|
||||||
NotificationReceiver.resumeDownloadsPendingBroadcast(context))
|
NotificationReceiver.resumeDownloadsPendingBroadcast(context))
|
||||||
//Clear action
|
//Clear action
|
||||||
addAction(R.drawable.ic_clear_grey_24dp_img,
|
addAction(R.drawable.ic_close_white_24dp,
|
||||||
context.getString(R.string.action_clear),
|
context.getString(R.string.action_clear),
|
||||||
NotificationReceiver.clearDownloadsPendingBroadcast(context))
|
NotificationReceiver.clearDownloadsPendingBroadcast(context))
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,11 +84,11 @@ class LibraryUpdateService(
|
||||||
*/
|
*/
|
||||||
private val progressNotification by lazy { NotificationCompat.Builder(this, Notifications.CHANNEL_LIBRARY)
|
private val progressNotification by lazy { NotificationCompat.Builder(this, Notifications.CHANNEL_LIBRARY)
|
||||||
.setContentTitle(getString(R.string.app_name))
|
.setContentTitle(getString(R.string.app_name))
|
||||||
.setSmallIcon(R.drawable.ic_refresh_white_24dp_img)
|
.setSmallIcon(R.drawable.ic_refresh_white_24dp)
|
||||||
.setLargeIcon(notificationBitmap)
|
.setLargeIcon(notificationBitmap)
|
||||||
.setOngoing(true)
|
.setOngoing(true)
|
||||||
.setOnlyAlertOnce(true)
|
.setOnlyAlertOnce(true)
|
||||||
.addAction(R.drawable.ic_clear_grey_24dp_img, getString(android.R.string.cancel), cancelIntent)
|
.addAction(R.drawable.ic_close_white_24dp, getString(android.R.string.cancel), cancelIntent)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -73,11 +73,11 @@ internal class UpdaterNotifier(private val context: Context) {
|
||||||
setProgress(0, 0, false)
|
setProgress(0, 0, false)
|
||||||
// Install action
|
// Install action
|
||||||
setContentIntent(NotificationHandler.installApkPendingActivity(context, uri))
|
setContentIntent(NotificationHandler.installApkPendingActivity(context, uri))
|
||||||
addAction(R.drawable.ic_system_update_grey_24dp_img,
|
addAction(R.drawable.ic_system_update_alt_white_24dp,
|
||||||
context.getString(R.string.action_install),
|
context.getString(R.string.action_install),
|
||||||
NotificationHandler.installApkPendingActivity(context, uri))
|
NotificationHandler.installApkPendingActivity(context, uri))
|
||||||
// Cancel action
|
// Cancel action
|
||||||
addAction(R.drawable.ic_clear_grey_24dp_img,
|
addAction(R.drawable.ic_close_white_24dp,
|
||||||
context.getString(R.string.action_cancel),
|
context.getString(R.string.action_cancel),
|
||||||
NotificationReceiver.dismissNotificationPendingBroadcast(context, Notifications.ID_UPDATER))
|
NotificationReceiver.dismissNotificationPendingBroadcast(context, Notifications.ID_UPDATER))
|
||||||
}
|
}
|
||||||
|
@ -96,11 +96,11 @@ internal class UpdaterNotifier(private val context: Context) {
|
||||||
setOnlyAlertOnce(false)
|
setOnlyAlertOnce(false)
|
||||||
setProgress(0, 0, false)
|
setProgress(0, 0, false)
|
||||||
// Retry action
|
// Retry action
|
||||||
addAction(R.drawable.ic_refresh_grey_24dp_img,
|
addAction(R.drawable.ic_refresh_white_24dp,
|
||||||
context.getString(R.string.action_retry),
|
context.getString(R.string.action_retry),
|
||||||
UpdaterService.downloadApkPendingService(context, url))
|
UpdaterService.downloadApkPendingService(context, url))
|
||||||
// Cancel action
|
// Cancel action
|
||||||
addAction(R.drawable.ic_clear_grey_24dp_img,
|
addAction(R.drawable.ic_close_white_24dp,
|
||||||
context.getString(R.string.action_cancel),
|
context.getString(R.string.action_cancel),
|
||||||
NotificationReceiver.dismissNotificationPendingBroadcast(context, Notifications.ID_UPDATER))
|
NotificationReceiver.dismissNotificationPendingBroadcast(context, Notifications.ID_UPDATER))
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@ class SaveImageNotifier(private val context: Context) {
|
||||||
private fun showCompleteNotification(file: File, image: Bitmap) {
|
private fun showCompleteNotification(file: File, image: Bitmap) {
|
||||||
with(notificationBuilder) {
|
with(notificationBuilder) {
|
||||||
setContentTitle(context.getString(R.string.picture_saved))
|
setContentTitle(context.getString(R.string.picture_saved))
|
||||||
setSmallIcon(R.drawable.ic_insert_photo_white_24dp)
|
setSmallIcon(R.drawable.ic_image_black_24dp)
|
||||||
setStyle(NotificationCompat.BigPictureStyle().bigPicture(image))
|
setStyle(NotificationCompat.BigPictureStyle().bigPicture(image))
|
||||||
setLargeIcon(image)
|
setLargeIcon(image)
|
||||||
setAutoCancel(true)
|
setAutoCancel(true)
|
||||||
|
@ -64,11 +64,11 @@ class SaveImageNotifier(private val context: Context) {
|
||||||
|
|
||||||
setContentIntent(NotificationHandler.openImagePendingActivity(context, file))
|
setContentIntent(NotificationHandler.openImagePendingActivity(context, file))
|
||||||
// Share action
|
// Share action
|
||||||
addAction(R.drawable.ic_share_grey_24dp,
|
addAction(R.drawable.ic_share_white_24dp,
|
||||||
context.getString(R.string.action_share),
|
context.getString(R.string.action_share),
|
||||||
NotificationReceiver.shareImagePendingBroadcast(context, file.absolutePath, notificationId))
|
NotificationReceiver.shareImagePendingBroadcast(context, file.absolutePath, notificationId))
|
||||||
// Delete action
|
// Delete action
|
||||||
addAction(R.drawable.ic_delete_grey_24dp,
|
addAction(R.drawable.ic_delete_white_24dp,
|
||||||
context.getString(R.string.action_delete),
|
context.getString(R.string.action_delete),
|
||||||
NotificationReceiver.deleteImagePendingBroadcast(context, file.absolutePath, notificationId))
|
NotificationReceiver.deleteImagePendingBroadcast(context, file.absolutePath, notificationId))
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 331 B |
Before Width: | Height: | Size: 631 B |
Before Width: | Height: | Size: 180 B |
Before Width: | Height: | Size: 281 B |
Before Width: | Height: | Size: 485 B |
Before Width: | Height: | Size: 247 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 476 B |
Before Width: | Height: | Size: 928 B |
Before Width: | Height: | Size: 717 B |
Before Width: | Height: | Size: 363 B |
Before Width: | Height: | Size: 421 B |
Before Width: | Height: | Size: 136 B |
Before Width: | Height: | Size: 211 B |
Before Width: | Height: | Size: 367 B |
Before Width: | Height: | Size: 185 B |
Before Width: | Height: | Size: 632 B |
Before Width: | Height: | Size: 323 B |
Before Width: | Height: | Size: 554 B |
Before Width: | Height: | Size: 487 B |
Before Width: | Height: | Size: 536 B |
Before Width: | Height: | Size: 780 B |
Before Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 333 B |
Before Width: | Height: | Size: 594 B |
Before Width: | Height: | Size: 304 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 632 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 871 B |
Before Width: | Height: | Size: 699 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 283 B |
Before Width: | Height: | Size: 462 B |
Before Width: | Height: | Size: 695 B |
Before Width: | Height: | Size: 450 B |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 930 B |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 850 B |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 350 B |
Before Width: | Height: | Size: 602 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 570 B |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 1.3 KiB |
9
app/src/main/res/drawable/ic_book_white_24dp.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24.0"
|
||||||
|
android:viewportHeight="24.0">
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFFFFF"
|
||||||
|
android:pathData="M18,2H6c-1.1,0 -2,0.9 -2,2v16c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2V4c0,-1.1 -0.9,-2 -2,-2zM6,4h5v8l-2.5,-1.5L6,12V4z"/>
|
||||||
|
</vector>
|
Before Width: | Height: | Size: 185 B |
9
app/src/main/res/drawable/ic_share_black_24dp.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportHeight="24.0"
|
||||||
|
android:viewportWidth="24.0">
|
||||||
|
<path
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92 1.61,0 2.92,-1.31 2.92,-2.92s-1.31,-2.92 -2.92,-2.92z" />
|
||||||
|
</vector>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<vector android:height="24dp" android:tint="#FFFFFF"
|
||||||
|
android:viewportHeight="24.0" android:viewportWidth="24.0"
|
||||||
|
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path android:fillColor="#FF000000" android:pathData="M12,16.5l4,-4h-3v-9h-2v9L8,12.5l4,4zM21,3.5h-6v1.99h6v14.03L3,19.52L3,5.49h6L9,3.5L3,3.5c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h18c1.1,0 2,-0.9 2,-2v-14c0,-1.1 -0.9,-2 -2,-2z"/>
|
||||||
|
</vector>
|
|
@ -21,8 +21,8 @@
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
app:srcCompat="@drawable/ic_image_black_24dp"
|
android:tint="@color/md_white_1000_54"
|
||||||
android:tint="@color/md_white_1000_54"/>
|
app:srcCompat="@drawable/ic_image_black_24dp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -46,7 +46,8 @@
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
app:srcCompat="@drawable/ic_share_grey_24dp"/>
|
android:tint="@color/md_white_1000_54"
|
||||||
|
app:srcCompat="@drawable/ic_share_black_24dp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -70,8 +71,8 @@
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
app:srcCompat="@drawable/ic_file_download_black_24dp"
|
android:tint="@color/md_white_1000_54"
|
||||||
android:tint="@color/md_white_1000_54"/>
|
app:srcCompat="@drawable/ic_file_download_black_24dp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|