Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@@ -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()
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
})
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 {