fix: clean up some warnings
This commit is contained in:
parent
ab7bc15573
commit
1b50ffcf11
32 changed files with 50 additions and 301 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue