mirror of
https://github.com/nextcloud/talk-android
synced 2025-01-31 11:32:00 +00:00
codacy: improve identation
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
2ffdd5199c
commit
7bd6076795
@ -261,8 +261,7 @@ class ConversationInfoController(args: Bundle) : BaseController(args), FlexibleA
|
|||||||
|
|
||||||
dateTimePicker(
|
dateTimePicker(
|
||||||
minDateTime = Calendar.getInstance(),
|
minDateTime = Calendar.getInstance(),
|
||||||
requireFutureDateTime =
|
requireFutureDateTime = true,
|
||||||
true,
|
|
||||||
currentDateTime = currentTimeCalendar,
|
currentDateTime = currentTimeCalendar,
|
||||||
show24HoursView = true,
|
show24HoursView = true,
|
||||||
dateTimeCallback = { _,
|
dateTimeCallback = { _,
|
||||||
@ -310,11 +309,7 @@ class ConversationInfoController(args: Bundle) : BaseController(args), FlexibleA
|
|||||||
|
|
||||||
fun submitLobbyChanges() {
|
fun submitLobbyChanges() {
|
||||||
val state = if (
|
val state = if (
|
||||||
(
|
(conversationInfoLobby.findViewById<View>(R.id.mp_checkable) as SwitchCompat).isChecked
|
||||||
conversationInfoLobby.findViewById<View>(
|
|
||||||
R.id.mp_checkable
|
|
||||||
) as SwitchCompat
|
|
||||||
).isChecked
|
|
||||||
) 1 else 0
|
) 1 else 0
|
||||||
|
|
||||||
val apiVersion = ApiUtils.getConversationApiVersion(conversationUser, intArrayOf(ApiUtils.APIv4, 1))
|
val apiVersion = ApiUtils.getConversationApiVersion(conversationUser, intArrayOf(ApiUtils.APIv4, 1))
|
||||||
@ -669,9 +664,7 @@ class ConversationInfoController(args: Bundle) : BaseController(args), FlexibleA
|
|||||||
|
|
||||||
private fun loadConversationAvatar() {
|
private fun loadConversationAvatar() {
|
||||||
when (conversation!!.type) {
|
when (conversation!!.type) {
|
||||||
Conversation.ConversationType.ROOM_TYPE_ONE_TO_ONE_CALL -> if (
|
Conversation.ConversationType.ROOM_TYPE_ONE_TO_ONE_CALL -> if (!TextUtils.isEmpty(conversation!!.name)) {
|
||||||
!TextUtils.isEmpty(conversation!!.name)
|
|
||||||
) {
|
|
||||||
val draweeController = Fresco.newDraweeControllerBuilder()
|
val draweeController = Fresco.newDraweeControllerBuilder()
|
||||||
.setOldController(conversationAvatarImageView.controller)
|
.setOldController(conversationAvatarImageView.controller)
|
||||||
.setAutoPlayAnimations(true)
|
.setAutoPlayAnimations(true)
|
||||||
|
Loading…
Reference in New Issue
Block a user