mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 14:27:24 +00:00
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:
parent
0085b7cebf
commit
ef273cf9ff
@ -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"
|
||||
}
|
||||
|
||||
|
@ -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())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user