mirror of
https://github.com/nextcloud/talk-android
synced 2025-01-31 03:22:03 +00:00
improve detekt score
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
5a76f3a3d3
commit
b84589a831
@ -457,6 +457,7 @@ class ChatController(args: Bundle) :
|
|||||||
currentConversation?.type == Conversation.ConversationType
|
currentConversation?.type == Conversation.ConversationType
|
||||||
.ROOM_TYPE_ONE_TO_ONE_CALL
|
.ROOM_TYPE_ONE_TO_ONE_CALL
|
||||||
|
|
||||||
|
@Suppress("Detekt.TooGenericExceptionCaught")
|
||||||
override fun onViewBound(view: View) {
|
override fun onViewBound(view: View) {
|
||||||
Log.d(TAG, "onViewBound: " + System.identityHashCode(this).toString())
|
Log.d(TAG, "onViewBound: " + System.identityHashCode(this).toString())
|
||||||
actionBar?.show()
|
actionBar?.show()
|
||||||
|
@ -336,6 +336,7 @@ class ProfileController : NewBaseController(R.layout.controller_profile) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("Detekt.TooGenericExceptionCaught")
|
||||||
private fun setErrorMessageForMultiList(headline: String, message: String, @DrawableRes errorResource: Int) {
|
private fun setErrorMessageForMultiList(headline: String, message: String, @DrawableRes errorResource: Int) {
|
||||||
if (activity == null) {
|
if (activity == null) {
|
||||||
return
|
return
|
||||||
|
@ -191,6 +191,7 @@ class ServerSelectionController :
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SuppressLint("LongLogTag")
|
@SuppressLint("LongLogTag")
|
||||||
|
@Suppress("Detekt.TooGenericExceptionCaught")
|
||||||
private fun checkServerAndProceed() {
|
private fun checkServerAndProceed() {
|
||||||
dispose()
|
dispose()
|
||||||
try {
|
try {
|
||||||
|
@ -182,6 +182,7 @@ class WebViewLoginController(args: Bundle? = null) : NewBaseController(
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("Detekt.TooGenericExceptionCaught")
|
||||||
override fun onPageFinished(view: WebView, url: String) {
|
override fun onPageFinished(view: WebView, url: String) {
|
||||||
try {
|
try {
|
||||||
loginStep++
|
loginStep++
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
build:
|
build:
|
||||||
maxIssues: 95
|
maxIssues: 91
|
||||||
weights:
|
weights:
|
||||||
# complexity: 2
|
# complexity: 2
|
||||||
# LongParameterList: 1
|
# LongParameterList: 1
|
||||||
|
Loading…
Reference in New Issue
Block a user