mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-23 18:31:02 +00:00
fix: clean up some warnings
This commit is contained in:
@@ -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