mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-28 17:51:02 +00:00
fix: clean up some warnings
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package ani.dantotsu.notifications
|
||||
|
||||
import android.content.Context
|
||||
import androidx.work.OutOfQuotaPolicy
|
||||
import ani.dantotsu.notifications.anilist.AnilistNotificationWorker
|
||||
import ani.dantotsu.notifications.comment.CommentNotificationWorker
|
||||
import ani.dantotsu.notifications.subscription.SubscriptionNotificationWorker
|
||||
|
||||
@@ -57,8 +57,7 @@ class CommentNotificationTask : Task {
|
||||
if (notifications.isNullOrEmpty()) return@withContext
|
||||
PrefManager.setVal(
|
||||
PrefName.UnreadCommentNotifications,
|
||||
PrefManager.getVal<Int>(PrefName.UnreadCommentNotifications) + (notifications.size
|
||||
?: 0)
|
||||
PrefManager.getVal<Int>(PrefName.UnreadCommentNotifications) + (notifications.size)
|
||||
)
|
||||
|
||||
notifications.forEach {
|
||||
@@ -293,6 +292,7 @@ class CommentNotificationTask : Task {
|
||||
return notification
|
||||
}
|
||||
|
||||
@Suppress("unused")
|
||||
private fun getBitmapFromVectorDrawable(context: Context, drawableId: Int): Bitmap? {
|
||||
val drawable = ContextCompat.getDrawable(context, drawableId) ?: return null
|
||||
val bitmap = Bitmap.createBitmap(
|
||||
|
||||
Reference in New Issue
Block a user