mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-10 14:24:05 +01:00
use stringbuilder
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
c91631a642
commit
8bb7af4eef
@ -683,11 +683,11 @@ class ChatController(args: Bundle) :
|
|||||||
}
|
}
|
||||||
require(files.isNotEmpty())
|
require(files.isNotEmpty())
|
||||||
|
|
||||||
var filenamesWithLinebreaks = "\n"
|
val filenamesWithLinebreaks = StringBuilder("\n")
|
||||||
|
|
||||||
for (file in files) {
|
for (file in files) {
|
||||||
val filename = UriUtils.getFileName(Uri.parse(file), context)
|
val filename = UriUtils.getFileName(Uri.parse(file), context)
|
||||||
filenamesWithLinebreaks += filename + "\n"
|
filenamesWithLinebreaks.append(filename).append("\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
val confirmationQuestion = when (files.size) {
|
val confirmationQuestion = when (files.size) {
|
||||||
@ -702,7 +702,7 @@ class ChatController(args: Bundle) :
|
|||||||
LovelyStandardDialog(activity)
|
LovelyStandardDialog(activity)
|
||||||
.setPositiveButtonColorRes(R.color.nc_darkGreen)
|
.setPositiveButtonColorRes(R.color.nc_darkGreen)
|
||||||
.setTitle(confirmationQuestion)
|
.setTitle(confirmationQuestion)
|
||||||
.setMessage(filenamesWithLinebreaks)
|
.setMessage(filenamesWithLinebreaks.toString())
|
||||||
.setPositiveButton(R.string.nc_yes) { v ->
|
.setPositiveButton(R.string.nc_yes) { v ->
|
||||||
uploadFiles(files)
|
uploadFiles(files)
|
||||||
Toast.makeText(
|
Toast.makeText(
|
||||||
|
Loading…
Reference in New Issue
Block a user