mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 04:29:45 +01:00
ignore generic exception handling
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
86f8f1d5cd
commit
a10b67456c
@ -149,6 +149,7 @@ class MagicFirebaseMessagingService : FirebaseMessagingService() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("Detekt.TooGenericExceptionCaught")
|
||||||
private fun decryptMessage(subject: String, signature: String) {
|
private fun decryptMessage(subject: String, signature: String) {
|
||||||
try {
|
try {
|
||||||
val base64DecodedSubject = Base64.decode(subject, Base64.DEFAULT)
|
val base64DecodedSubject = Base64.decode(subject, Base64.DEFAULT)
|
||||||
|
@ -87,6 +87,7 @@ class MainActivity : BaseActivity(), ActionBarProvider {
|
|||||||
|
|
||||||
private var router: Router? = null
|
private var router: Router? = null
|
||||||
|
|
||||||
|
@Suppress("Detekt.TooGenericExceptionCaught")
|
||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
Log.d(TAG, "onCreate: Activity: " + System.identityHashCode(this).toString())
|
Log.d(TAG, "onCreate: Activity: " + System.identityHashCode(this).toString())
|
||||||
|
|
||||||
|
@ -213,6 +213,7 @@ class LocationPickerController(args: Bundle) :
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("Detekt.TooGenericExceptionCaught")
|
||||||
private fun initMap() {
|
private fun initMap() {
|
||||||
binding.map.setTileSource(TileSourceFactory.MAPNIK)
|
binding.map.setTileSource(TileSourceFactory.MAPNIK)
|
||||||
binding.map.onResume()
|
binding.map.onResume()
|
||||||
|
@ -114,6 +114,7 @@ class UploadAndShareFilesWorker(val context: Context, workerParameters: WorkerPa
|
|||||||
return Result.success()
|
return Result.success()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("Detekt.TooGenericExceptionCaught")
|
||||||
private fun createRequestBody(sourcefileUri: Uri): RequestBody? {
|
private fun createRequestBody(sourcefileUri: Uri): RequestBody? {
|
||||||
var requestBody: RequestBody? = null
|
var requestBody: RequestBody? = null
|
||||||
try {
|
try {
|
||||||
|
@ -139,6 +139,7 @@ object AccountUtils {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("Detekt.TooGenericExceptionCaught")
|
||||||
fun getInformationFromAccount(account: Account): ImportAccount {
|
fun getInformationFromAccount(account: Account): ImportAccount {
|
||||||
val lastAtPos = account.name.lastIndexOf("@")
|
val lastAtPos = account.name.lastIndexOf("@")
|
||||||
var urlString = account.name.substring(lastAtPos + 1)
|
var urlString = account.name.substring(lastAtPos + 1)
|
||||||
|
@ -43,6 +43,7 @@ class ImageEmojiEditText : EmojiEditText {
|
|||||||
constructor(context: Context) : super(context)
|
constructor(context: Context) : super(context)
|
||||||
constructor(context: Context, attrs: AttributeSet) : super(context, attrs)
|
constructor(context: Context, attrs: AttributeSet) : super(context, attrs)
|
||||||
|
|
||||||
|
@Suppress("Detekt.TooGenericExceptionCaught")
|
||||||
override fun onCreateInputConnection(editorInfo: EditorInfo): InputConnection {
|
override fun onCreateInputConnection(editorInfo: EditorInfo): InputConnection {
|
||||||
|
|
||||||
val ic: InputConnection = super.onCreateInputConnection(editorInfo)
|
val ic: InputConnection = super.onCreateInputConnection(editorInfo)
|
||||||
|
Loading…
Reference in New Issue
Block a user