From 7bd6076795aa483aaa29b8c96931e01219d56b8d Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Mon, 17 May 2021 14:30:16 +0200 Subject: [PATCH] codacy: improve identation Signed-off-by: Andy Scherzinger --- .../talk/controllers/ConversationInfoController.kt | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/controllers/ConversationInfoController.kt b/app/src/main/java/com/nextcloud/talk/controllers/ConversationInfoController.kt index 1f637ca2b..ddfb96798 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/ConversationInfoController.kt +++ b/app/src/main/java/com/nextcloud/talk/controllers/ConversationInfoController.kt @@ -261,8 +261,7 @@ class ConversationInfoController(args: Bundle) : BaseController(args), FlexibleA dateTimePicker( minDateTime = Calendar.getInstance(), - requireFutureDateTime = - true, + requireFutureDateTime = true, currentDateTime = currentTimeCalendar, show24HoursView = true, dateTimeCallback = { _, @@ -310,11 +309,7 @@ class ConversationInfoController(args: Bundle) : BaseController(args), FlexibleA fun submitLobbyChanges() { val state = if ( - ( - conversationInfoLobby.findViewById( - R.id.mp_checkable - ) as SwitchCompat - ).isChecked + (conversationInfoLobby.findViewById(R.id.mp_checkable) as SwitchCompat).isChecked ) 1 else 0 val apiVersion = ApiUtils.getConversationApiVersion(conversationUser, intArrayOf(ApiUtils.APIv4, 1)) @@ -669,9 +664,7 @@ class ConversationInfoController(args: Bundle) : BaseController(args), FlexibleA private fun loadConversationAvatar() { when (conversation!!.type) { - Conversation.ConversationType.ROOM_TYPE_ONE_TO_ONE_CALL -> if ( - !TextUtils.isEmpty(conversation!!.name) - ) { + Conversation.ConversationType.ROOM_TYPE_ONE_TO_ONE_CALL -> if (!TextUtils.isEmpty(conversation!!.name)) { val draweeController = Fresco.newDraweeControllerBuilder() .setOldController(conversationAvatarImageView.controller) .setAutoPlayAnimations(true)