style(lint): replace magic number with constant
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Родитель
e4088d0ddc
Коммит
9e3840c3a9
|
@ -150,7 +150,7 @@ abstract class PreviewMessageViewHolder(itemView: View?, payload: Any?) :
|
||||||
messageText.text = ""
|
messageText.text = ""
|
||||||
}
|
}
|
||||||
itemView.setTag(R.string.replyable_message_view_tag, message.replyable)
|
itemView.setTag(R.string.replyable_message_view_tag, message.replyable)
|
||||||
val paddingSide = DisplayUtils.convertDpToPixel(8.0f, context!!).toInt()
|
val paddingSide = DisplayUtils.convertDpToPixel(HORIZONTAL_REACTION_PADDING, context!!).toInt()
|
||||||
Reaction().showReactions(
|
Reaction().showReactions(
|
||||||
message,
|
message,
|
||||||
::clickOnReaction,
|
::clickOnReaction,
|
||||||
|
@ -339,5 +339,6 @@ abstract class PreviewMessageViewHolder(itemView: View?, payload: Any?) :
|
||||||
const val ACTOR_ID_CHANGELOG = "changelog"
|
const val ACTOR_ID_CHANGELOG = "changelog"
|
||||||
const val KEY_NAME = "name"
|
const val KEY_NAME = "name"
|
||||||
const val MIN_IMAGE_HEIGHT = 100F
|
const val MIN_IMAGE_HEIGHT = 100F
|
||||||
|
const val HORIZONTAL_REACTION_PADDING = 8.0F
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
|
# SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
build:
|
build:
|
||||||
maxIssues: 82
|
maxIssues: 78
|
||||||
weights:
|
weights:
|
||||||
# complexity: 2
|
# complexity: 2
|
||||||
# LongParameterList: 1
|
# LongParameterList: 1
|
||||||
|
|
Загрузка…
Ссылка в новой задаче