mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-10 14:24:05 +01:00
proper indentation
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
f540aa9305
commit
ec5a98e22b
@ -103,7 +103,7 @@ class UploadAndShareFilesWorker(val context: Context, workerParameters: WorkerPa
|
|||||||
val input: InputStream = context.contentResolver.openInputStream(sourcefileUri)!!
|
val input: InputStream = context.contentResolver.openInputStream(sourcefileUri)!!
|
||||||
val buf = ByteArray(input.available())
|
val buf = ByteArray(input.available())
|
||||||
while (input.read(buf) != -1)
|
while (input.read(buf) != -1)
|
||||||
requestBody = RequestBody.create("application/octet-stream".toMediaTypeOrNull(), buf)
|
requestBody = RequestBody.create("application/octet-stream".toMediaTypeOrNull(), buf)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Log.e(javaClass.simpleName, "failed to create RequestBody for $sourcefileUri", e)
|
Log.e(javaClass.simpleName, "failed to create RequestBody for $sourcefileUri", e)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user