mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-22 04:59:34 +01:00
suppress some detekt warnings
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
ca145d170c
commit
3729f1130a
@ -297,6 +297,7 @@ class CallNotificationActivity : CallBaseActivity() {
|
||||
return PendingIntent.getActivity(context, requestCode, intent, intentFlag)
|
||||
}
|
||||
|
||||
@Suppress("MagicNumber")
|
||||
private fun handleFromNotification() {
|
||||
val apiVersion = ApiUtils.getConversationApiVersion(
|
||||
userBeingCalled,
|
||||
@ -363,6 +364,7 @@ class CallNotificationActivity : CallBaseActivity() {
|
||||
showAnswerControls()
|
||||
}
|
||||
|
||||
@Suppress("MagicNumber")
|
||||
private fun setAvatarForOneToOneCall() {
|
||||
val imageRequest = DisplayUtils.getImageRequestForUrl(
|
||||
ApiUtils.getUrlForAvatar(
|
||||
|
@ -274,6 +274,7 @@ class NotificationWorker(context: Context, workerParams: WorkerParameters) : Wor
|
||||
)
|
||||
}
|
||||
|
||||
@Suppress("TooGenericExceptionCaught", "NestedBlockDepth", "ComplexMethod", "LongMethod")
|
||||
private fun initDecryptedData(inputData: Data) {
|
||||
val subject = inputData.getString(BundleKeys.KEY_NOTIFICATION_SUBJECT)
|
||||
val signature = inputData.getString(BundleKeys.KEY_NOTIFICATION_SIGNATURE)
|
||||
@ -389,6 +390,7 @@ class NotificationWorker(context: Context, workerParams: WorkerParameters) : Wor
|
||||
})
|
||||
}
|
||||
|
||||
@Suppress("MagicNumber")
|
||||
private fun showNotification(intent: Intent) {
|
||||
val largeIcon: Bitmap
|
||||
val priority = NotificationCompat.PRIORITY_HIGH
|
||||
|
@ -70,6 +70,7 @@ data class DecryptedPushMessage(
|
||||
// This constructor is added to work with the 'com.bluelinelabs.logansquare.annotation.JsonObject'
|
||||
constructor() : this(null, null, "", null, 0, null, false, false, false, null, null, 0, null)
|
||||
|
||||
@Suppress("Detekt.ComplexMethod")
|
||||
override fun equals(other: Any?): Boolean {
|
||||
if (this === other) return true
|
||||
if (javaClass != other?.javaClass) return false
|
||||
|
@ -47,6 +47,7 @@ import com.nextcloud.talk.utils.bundle.BundleKeys
|
||||
import com.nextcloud.talk.utils.preferences.AppPreferences
|
||||
import java.io.IOException
|
||||
|
||||
@Suppress("TooManyFunctions")
|
||||
object NotificationUtils {
|
||||
|
||||
enum class NotificationChannels {
|
||||
|
Loading…
Reference in New Issue
Block a user