Cleaning out the rasterized resources
@ -73,7 +73,7 @@ internal class BackupNotifier(private val context: Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
addAction(
|
addAction(
|
||||||
R.drawable.ic_share_grey_24dp,
|
R.drawable.ic_share_24dp,
|
||||||
context.getString(R.string.share),
|
context.getString(R.string.share),
|
||||||
NotificationReceiver.shareBackupPendingBroadcast(context, unifile.uri, Notifications.ID_BACKUP_COMPLETE)
|
NotificationReceiver.shareBackupPendingBroadcast(context, unifile.uri, Notifications.ID_BACKUP_COMPLETE)
|
||||||
)
|
)
|
||||||
|
@ -364,7 +364,7 @@ class BackupRestoreService : Service() {
|
|||||||
.setOnlyAlertOnce(true)
|
.setOnlyAlertOnce(true)
|
||||||
.setAutoCancel(false)
|
.setAutoCancel(false)
|
||||||
.setColor(ContextCompat.getColor(this, R.color.colorAccent))
|
.setColor(ContextCompat.getColor(this, R.color.colorAccent))
|
||||||
.addAction(R.drawable.ic_clear_grey_24dp_img, getString(android.R.string.cancel), cancelIntent)
|
.addAction(R.drawable.ic_close_24dp, getString(android.R.string.cancel), cancelIntent)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -440,7 +440,7 @@ class BackupRestoreService : Service() {
|
|||||||
.setPriority(NotificationCompat.PRIORITY_HIGH)
|
.setPriority(NotificationCompat.PRIORITY_HIGH)
|
||||||
.setColor(ContextCompat.getColor(this, R.color.colorAccent))
|
.setColor(ContextCompat.getColor(this, R.color.colorAccent))
|
||||||
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_close_24dp, getString(R.string
|
||||||
.view_all_errors), getErrorLogIntent(path, file))
|
.view_all_errors), getErrorLogIntent(path, file))
|
||||||
}
|
}
|
||||||
notificationManager.notify(Notifications.ID_RESTORE_COMPLETE, resultNotification.build())
|
notificationManager.notify(Notifications.ID_RESTORE_COMPLETE, resultNotification.build())
|
||||||
|
@ -78,7 +78,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_24dp,
|
||||||
context.getString(R.string.pause),
|
context.getString(R.string.pause),
|
||||||
NotificationReceiver.pauseDownloadsPendingBroadcast(context))
|
NotificationReceiver.pauseDownloadsPendingBroadcast(context))
|
||||||
}
|
}
|
||||||
@ -124,7 +124,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_24dp,
|
||||||
context.getString(R.string.pause),
|
context.getString(R.string.pause),
|
||||||
NotificationReceiver.pauseDownloadsPendingBroadcast(context))
|
NotificationReceiver.pauseDownloadsPendingBroadcast(context))
|
||||||
}
|
}
|
||||||
@ -149,7 +149,7 @@ internal class DownloadNotifier(private val context: Context) {
|
|||||||
with(notification) {
|
with(notification) {
|
||||||
setContentTitle(context.getString(R.string.paused))
|
setContentTitle(context.getString(R.string.paused))
|
||||||
setContentText(context.getString(R.string.download_paused))
|
setContentText(context.getString(R.string.download_paused))
|
||||||
setSmallIcon(R.drawable.ic_av_pause_grey_24dp_img)
|
setSmallIcon(R.drawable.ic_pause_24dp)
|
||||||
setAutoCancel(false)
|
setAutoCancel(false)
|
||||||
setProgress(0, 0, false)
|
setProgress(0, 0, false)
|
||||||
clearActions()
|
clearActions()
|
||||||
@ -157,13 +157,13 @@ internal class DownloadNotifier(private val context: Context) {
|
|||||||
setContentIntent(NotificationHandler.openDownloadManagerPendingActivity(context))
|
setContentIntent(NotificationHandler.openDownloadManagerPendingActivity(context))
|
||||||
// Resume action
|
// Resume action
|
||||||
addAction(
|
addAction(
|
||||||
R.drawable.ic_av_play_arrow_grey_img,
|
R.drawable.ic_play_arrow_24dp,
|
||||||
context.getString(R.string.resume),
|
context.getString(R.string.resume),
|
||||||
NotificationReceiver.resumeDownloadsPendingBroadcast(context)
|
NotificationReceiver.resumeDownloadsPendingBroadcast(context)
|
||||||
)
|
)
|
||||||
// Clear action
|
// Clear action
|
||||||
addAction(
|
addAction(
|
||||||
R.drawable.ic_clear_grey_24dp_img,
|
R.drawable.ic_close_24dp,
|
||||||
context.getString(R.string.cancel_all),
|
context.getString(R.string.cancel_all),
|
||||||
NotificationReceiver.clearDownloadsPendingBroadcast(context)
|
NotificationReceiver.clearDownloadsPendingBroadcast(context)
|
||||||
)
|
)
|
||||||
|
@ -166,7 +166,7 @@ class LibraryUpdateNotifier(private val context: Context) {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
addAction(
|
addAction(
|
||||||
R.drawable.ic_book_white_24dp, context.getString(R.string.view_chapters),
|
R.drawable.ic_book_24dp, context.getString(R.string.view_chapters),
|
||||||
NotificationReceiver.openChapterPendingActivity(
|
NotificationReceiver.openChapterPendingActivity(
|
||||||
context,
|
context,
|
||||||
manga, Notifications.ID_NEW_CHAPTERS
|
manga, Notifications.ID_NEW_CHAPTERS
|
||||||
|
@ -75,11 +75,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_24dp,
|
||||||
context.getString(R.string.install),
|
context.getString(R.string.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_24dp,
|
||||||
context.getString(R.string.cancel),
|
context.getString(R.string.cancel),
|
||||||
NotificationReceiver.dismissNotificationPendingBroadcast(context, Notifications.ID_UPDATER))
|
NotificationReceiver.dismissNotificationPendingBroadcast(context, Notifications.ID_UPDATER))
|
||||||
}
|
}
|
||||||
@ -99,11 +99,11 @@ internal class UpdaterNotifier(private val context: Context) {
|
|||||||
setProgress(0, 0, false)
|
setProgress(0, 0, false)
|
||||||
color = ContextCompat.getColor(context, R.color.colorAccent)
|
color = ContextCompat.getColor(context, R.color.colorAccent)
|
||||||
// Retry action
|
// Retry action
|
||||||
addAction(R.drawable.ic_refresh_grey_24dp_img,
|
addAction(R.drawable.ic_refresh_24dp,
|
||||||
context.getString(R.string.retry),
|
context.getString(R.string.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_24dp,
|
||||||
context.getString(R.string.cancel),
|
context.getString(R.string.cancel),
|
||||||
NotificationReceiver.dismissNotificationPendingBroadcast(context, Notifications.ID_UPDATER))
|
NotificationReceiver.dismissNotificationPendingBroadcast(context, Notifications.ID_UPDATER))
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ class ExtensionUpdateJob(private val context: Context, workerParams: WorkerParam
|
|||||||
val extNames = names.joinToString(", ")
|
val extNames = names.joinToString(", ")
|
||||||
setContentText(extNames)
|
setContentText(extNames)
|
||||||
setStyle(NotificationCompat.BigTextStyle().bigText(extNames))
|
setStyle(NotificationCompat.BigTextStyle().bigText(extNames))
|
||||||
setSmallIcon(R.drawable.ic_extension_update)
|
setSmallIcon(R.drawable.ic_extension_update_24dp)
|
||||||
color = ContextCompat.getColor(context, R.color.colorAccent)
|
color = ContextCompat.getColor(context, R.color.colorAccent)
|
||||||
setContentIntent(
|
setContentIntent(
|
||||||
NotificationReceiver.openExtensionsPendingActivity(
|
NotificationReceiver.openExtensionsPendingActivity(
|
||||||
|
@ -80,7 +80,7 @@ class CategoryHolder(view: View, val adapter: CategoryAdapter) : BaseFlexibleVie
|
|||||||
if (!createCategory) {
|
if (!createCategory) {
|
||||||
reorder.setImageDrawable(
|
reorder.setImageDrawable(
|
||||||
ContextCompat.getDrawable(
|
ContextCompat.getDrawable(
|
||||||
itemView.context, R.drawable.ic_delete_white_24dp
|
itemView.context, R.drawable.ic_delete_24dp
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
reorder.setOnClickListener {
|
reorder.setOnClickListener {
|
||||||
|
@ -56,7 +56,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_photo_24dp)
|
||||||
setStyle(NotificationCompat.BigPictureStyle().bigPicture(image))
|
setStyle(NotificationCompat.BigPictureStyle().bigPicture(image))
|
||||||
setLargeIcon(image)
|
setLargeIcon(image)
|
||||||
setAutoCancel(true)
|
setAutoCancel(true)
|
||||||
@ -67,11 +67,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_24dp,
|
||||||
context.getString(R.string.share),
|
context.getString(R.string.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_24dp,
|
||||||
context.getString(R.string.delete),
|
context.getString(R.string.delete),
|
||||||
NotificationReceiver.deleteImagePendingBroadcast(context, file.absolutePath, notificationId))
|
NotificationReceiver.deleteImagePendingBroadcast(context, file.absolutePath, notificationId))
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ class SettingsMainController : SettingsController() {
|
|||||||
onClick { navigateTo(SettingsGeneralController()) }
|
onClick { navigateTo(SettingsGeneralController()) }
|
||||||
}
|
}
|
||||||
preference {
|
preference {
|
||||||
iconRes = R.drawable.ic_book_black_24dp
|
iconRes = R.drawable.ic_book_24dp
|
||||||
iconTint = tintColor
|
iconTint = tintColor
|
||||||
titleRes = R.string.library
|
titleRes = R.string.library
|
||||||
onClick { navigateTo(SettingsLibraryController()) }
|
onClick { navigateTo(SettingsLibraryController()) }
|
||||||
|
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: 404 B |
Before Width: | Height: | Size: 247 B |
Before Width: | Height: | Size: 1.1 KiB |
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: 284 B |
Before Width: | Height: | Size: 185 B |
Before Width: | Height: | Size: 632 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: 516 B |
Before Width: | Height: | Size: 304 B |
Before Width: | Height: | Size: 1.3 KiB |
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: 784 B |
Before Width: | Height: | Size: 450 B |
Before Width: | Height: | Size: 2.3 KiB |
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: 1.1 KiB |
Before Width: | Height: | Size: 570 B |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 1.3 KiB |
10
app/src/main/res/drawable/ic_extension_update_24dp.xml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="96"
|
||||||
|
android:viewportHeight="96">
|
||||||
|
<path
|
||||||
|
android:pathData="M71,85L25,85C21.134,85 18,81.866 18,78L18,18C18,14.134 21.134,11 25,11L71,11C74.866,11 78,14.134 78,18L78,78C78,81.866 74.866,85 71,85ZM65,54L62,54L62,45C62,42.239 59.761,40 57,40L49,40L49,38C49,35.239 46.761,33 44,33C41.239,33 39,35.239 39,38L39,40L31,40C28.239,40 26,42.239 26,45L26,54L30,54C32.761,54 35,56.239 35,59C35,61.761 32.761,64 30,64L26,64L26,72C26,74.761 28.239,77 31,77L39,77L39,73C39,70.239 41.239,68 44,68C46.761,68 49,70.239 49,73L49,77L57,77C59.761,77 62,74.761 62,72L62,64L65,64C67.761,64 70,61.761 70,59C70,56.239 67.761,54 65,54Z"
|
||||||
|
android:fillColor="#fff"
|
||||||
|
android:fillType="evenOdd"/>
|
||||||
|
</vector>
|
Before Width: | Height: | Size: 185 B |
@ -5,5 +5,5 @@
|
|||||||
android:viewportHeight="24.0">
|
android:viewportHeight="24.0">
|
||||||
<path
|
<path
|
||||||
android:fillColor="#FF000000"
|
android:fillColor="#FF000000"
|
||||||
android:pathData="M21,19V5c0,-1.1 -0.9,-2 -2,-2H5c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2zM8.5,13.5l2.5,3.01L14.5,12l4.5,6H5l3.5,-4.5z"/>
|
android:pathData="M21,19V5c0,-1.1 -0.9,-2 -2,-2H5c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2zM8.5,13.5l2.5,3.01L14.5,12l4.5,6H5l3.5,-4.5z" />
|
||||||
</vector>
|
</vector>
|
9
app/src/main/res/drawable/ic_system_update_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="#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>
|
@ -206,7 +206,7 @@
|
|||||||
android:layout_marginEnd="6dp"
|
android:layout_marginEnd="6dp"
|
||||||
android:contentDescription="@string/share"
|
android:contentDescription="@string/share"
|
||||||
android:padding="5dp"
|
android:padding="5dp"
|
||||||
android:src="@drawable/ic_share_white_24dp"
|
android:src="@drawable/ic_share_24dp"
|
||||||
android:tooltipText="@string/share" />
|
android:tooltipText="@string/share" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</HorizontalScrollView>
|
</HorizontalScrollView>
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
android:textColor="?android:textColorPrimary"
|
android:textColor="?android:textColorPrimary"
|
||||||
android:textSize="13sp"
|
android:textSize="13sp"
|
||||||
android:tint="@color/md_white_1000_54"
|
android:tint="@color/md_white_1000_54"
|
||||||
tools:drawableStart="@drawable/ic_share_grey_24dp"
|
tools:drawableStart="@drawable/ic_share_24dp"
|
||||||
tools:text="@string/share" />
|
tools:text="@string/share" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:tint="@color/md_white_1000_54"
|
android:tint="@color/md_white_1000_54"
|
||||||
app:srcCompat="@drawable/ic_image_black_24dp" />
|
app:srcCompat="@drawable/ic_photo_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_24dp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
<item android:id="@+id/action_start"
|
<item android:id="@+id/action_start"
|
||||||
android:title="@string/start_downloading_now"
|
android:title="@string/start_downloading_now"
|
||||||
android:icon="@drawable/ic_delete_white_24dp"/>
|
android:icon="@drawable/ic_delete_24dp"/>
|
||||||
<item android:id="@+id/action_delete"
|
<item android:id="@+id/action_delete"
|
||||||
android:title="@string/remove_download"
|
android:title="@string/remove_download"
|
||||||
android:icon="@drawable/ic_delete_white_24dp"/>
|
android:icon="@drawable/ic_delete_24dp"/>
|
||||||
</menu>
|
</menu>
|
@ -4,13 +4,13 @@
|
|||||||
|
|
||||||
<item android:title="@string/start"
|
<item android:title="@string/start"
|
||||||
android:id="@+id/start_queue"
|
android:id="@+id/start_queue"
|
||||||
android:icon="@drawable/ic_play_arrow_white_24dp"
|
android:icon="@drawable/ic_play_arrow_24dp"
|
||||||
android:visible="false"
|
android:visible="false"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom"/>
|
||||||
|
|
||||||
<item android:title="@string/pause"
|
<item android:title="@string/pause"
|
||||||
android:id="@+id/pause_queue"
|
android:id="@+id/pause_queue"
|
||||||
android:icon="@drawable/ic_pause_white_24dp"
|
android:icon="@drawable/ic_pause_24dp"
|
||||||
android:visible="false"
|
android:visible="false"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom"/>
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<item android:id="@+id/action_delete"
|
<item android:id="@+id/action_delete"
|
||||||
android:title="@string/remove"
|
android:title="@string/remove"
|
||||||
android:icon="@drawable/ic_delete_white_24dp"
|
android:icon="@drawable/ic_delete_24dp"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom"/>
|
||||||
|
|
||||||
<item
|
<item
|
||||||
|