mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-09 22:04:24 +01: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())
|
require(files.isNotEmpty())
|
||||||
|
|
||||||
var filenamesWithLinebreaks = "\n"
|
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"
|
filenamesWithLinebreaks += filename + "\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -485,8 +485,7 @@ class ConversationInfoController(args: Bundle) : BaseController(args), FlexibleA
|
|||||||
val bundle = Bundle()
|
val bundle = Bundle()
|
||||||
val existingParticipantsId = arrayListOf<String>()
|
val existingParticipantsId = arrayListOf<String>()
|
||||||
|
|
||||||
recyclerViewItems.forEach {
|
for (userItem in recyclerViewItems) {
|
||||||
val userItem = it as UserItem
|
|
||||||
if (userItem.model.getActorType() == USERS) {
|
if (userItem.model.getActorType() == USERS) {
|
||||||
existingParticipantsId.add(userItem.model.getActorId())
|
existingParticipantsId.add(userItem.model.getActorId())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user