ignore generic exception handling

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-03-10 18:44:37 +01:00
parent 86f8f1d5cd
commit a10b67456c
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B
6 changed files with 6 additions and 0 deletions

View File

@ -149,6 +149,7 @@ class MagicFirebaseMessagingService : FirebaseMessagingService() {
}
}
@Suppress("Detekt.TooGenericExceptionCaught")
private fun decryptMessage(subject: String, signature: String) {
try {
val base64DecodedSubject = Base64.decode(subject, Base64.DEFAULT)

View File

@ -87,6 +87,7 @@ class MainActivity : BaseActivity(), ActionBarProvider {
private var router: Router? = null
@Suppress("Detekt.TooGenericExceptionCaught")
override fun onCreate(savedInstanceState: Bundle?) {
Log.d(TAG, "onCreate: Activity: " + System.identityHashCode(this).toString())

View File

@ -213,6 +213,7 @@ class LocationPickerController(args: Bundle) :
return true
}
@Suppress("Detekt.TooGenericExceptionCaught")
private fun initMap() {
binding.map.setTileSource(TileSourceFactory.MAPNIK)
binding.map.onResume()

View File

@ -114,6 +114,7 @@ class UploadAndShareFilesWorker(val context: Context, workerParameters: WorkerPa
return Result.success()
}
@Suppress("Detekt.TooGenericExceptionCaught")
private fun createRequestBody(sourcefileUri: Uri): RequestBody? {
var requestBody: RequestBody? = null
try {

View File

@ -139,6 +139,7 @@ object AccountUtils {
return false
}
@Suppress("Detekt.TooGenericExceptionCaught")
fun getInformationFromAccount(account: Account): ImportAccount {
val lastAtPos = account.name.lastIndexOf("@")
var urlString = account.name.substring(lastAtPos + 1)

View File

@ -43,6 +43,7 @@ class ImageEmojiEditText : EmojiEditText {
constructor(context: Context) : super(context)
constructor(context: Context, attrs: AttributeSet) : super(context, attrs)
@Suppress("Detekt.TooGenericExceptionCaught")
override fun onCreateInputConnection(editorInfo: EditorInfo): InputConnection {
val ic: InputConnection = super.onCreateInputConnection(editorInfo)