Browse Source

reformat kotlin

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 3 years ago
parent
commit
6e02c5de41

+ 1 - 1
app/src/main/java/com/nextcloud/talk/controllers/AccountVerificationController.kt

@@ -124,7 +124,7 @@ class AccountVerificationController(args: Bundle? = null) :
         }
     }
 
-    private fun isSameProtocol(baseUrl: String, originalProtocol: String ) : Boolean {
+    private fun isSameProtocol(baseUrl: String, originalProtocol: String): Boolean {
         return !TextUtils.isEmpty(originalProtocol) && !baseUrl.startsWith(originalProtocol)
     }
 

+ 1 - 1
app/src/main/java/com/nextcloud/talk/controllers/ChatController.kt

@@ -2259,7 +2259,7 @@ class ChatController(args: Bundle) :
     private fun isSameDayNonSystemMessages(messageLeft: ChatMessage, messageRight: ChatMessage): Boolean {
         return TextUtils.isEmpty(messageLeft.systemMessage) &&
             TextUtils.isEmpty(messageRight.systemMessage) &&
-            DateFormatter.isSameDay(messageLeft.createdAt,messageRight.createdAt)
+            DateFormatter.isSameDay(messageLeft.createdAt, messageRight.createdAt)
     }
 
     override fun onLoadMore(page: Int, totalItemsCount: Int) {

+ 2 - 1
app/src/main/java/com/nextcloud/talk/utils/UriUtils.kt

@@ -1,7 +1,9 @@
 /*
  * Nextcloud Talk application
  *
+ * @author Andy Scherzinger
  * @author Marcel Hibbe
+ * Copyright (C) 2022 Andy Scherzinger <info@andy-scherzinger.de>
  * Copyright (C) 2021 Marcel Hibbe <dev@mhibbe.de>
  *
  * This program is free software: you can redistribute it and/or modify
@@ -24,7 +26,6 @@ import android.content.Context
 import android.database.Cursor
 import android.net.Uri
 import android.provider.OpenableColumns
-import android.text.TextUtils
 import android.util.Log
 
 class UriUtils {