Skip to content

Commit

Permalink
@Suppress "TooGenericExceptionCaught", "TooGenericExceptionThrown" de…
Browse files Browse the repository at this point in the history
…tekt issues

Signed-off-by: Andy Scherzinger <[email protected]>
  • Loading branch information
AndyScherzinger committed Nov 1, 2023
1 parent 9f9a84e commit 10b0834
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ class SetupEncryptionDialogFragment : DialogFragment(), Injectable {
}
}

@Suppress("TooGenericExceptionCaught", "TooGenericExceptionThrown")
private fun decryptPrivateKey(dialog: DialogInterface) {
Log_OC.d(TAG, "Decrypt private key")
binding.encryptionStatus.setText(R.string.end_to_end_encryption_decrypting)
Expand Down Expand Up @@ -348,7 +349,7 @@ class SetupEncryptionDialogFragment : DialogFragment(), Injectable {
// first show info
try {
if (keyWords == null || keyWords!!.isEmpty()) {
keyWords = EncryptionUtils.getRandomWords(12, context)
keyWords = EncryptionUtils.getRandomWords(NUMBER_OF_WORDS, context)
}
showMnemonicInfo()
} catch (e: IOException) {
Expand Down Expand Up @@ -534,6 +535,7 @@ class SetupEncryptionDialogFragment : DialogFragment(), Injectable {
const val ARG_POSITION = "ARG_POSITION"
const val RESULT_REQUEST_KEY = "RESULT_REQUEST"
const val RESULT_KEY_CANCELLED = "IS_CANCELLED"
private const val NUMBER_OF_WORDS = 12
private const val ARG_USER = "ARG_USER"
private val TAG = SetupEncryptionDialogFragment::class.java.simpleName
private const val KEY_CREATED = "KEY_CREATED"
Expand Down

0 comments on commit 10b0834

Please sign in to comment.