reformat kotlin

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-03-11 18:16:51 +01:00
parent 6206e4910d
commit 6e02c5de41
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B
3 changed files with 4 additions and 3 deletions

View File

@ -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)
}

View File

@ -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) {

View File

@ -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 {