fix: clean up some warnings

This commit is contained in:
rebelonion 2024-03-23 18:05:43 -05:00
parent ab7bc15573
commit 1b50ffcf11
32 changed files with 50 additions and 301 deletions

View file

@ -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(