rewrite to for-loop due to former dignature collision kotlin1.5<>java8

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2021-05-09 21:54:35 +02:00
parent 0085b7cebf
commit ef273cf9ff
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B
2 changed files with 4 additions and 4 deletions

View File

@ -684,8 +684,9 @@ class ChatController(args: Bundle) :
require(files.isNotEmpty())
var filenamesWithLinebreaks = "\n"
files.forEach {
var filename = UriUtils.getFileName(Uri.parse(it), context)
for (file in files) {
val filename = UriUtils.getFileName(Uri.parse(file), context)
filenamesWithLinebreaks += filename + "\n"
}

View File

@ -485,8 +485,7 @@ class ConversationInfoController(args: Bundle) : BaseController(args), FlexibleA
val bundle = Bundle()
val existingParticipantsId = arrayListOf<String>()
recyclerViewItems.forEach {
val userItem = it as UserItem
for (userItem in recyclerViewItems) {
if (userItem.model.getActorType() == USERS) {
existingParticipantsId.add(userItem.model.getActorId())
}