Skip to content

Commit 139f569

Browse files
committed
handle lib
Signed-off-by: alperozturk <[email protected]>
1 parent 394ad5b commit 139f569

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/src/main/java/com/nextcloud/ui/ClientIntegrationScreen.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
* Nextcloud - Android Client
33
*
4+
* SPDX-FileCopyrightText: 2025 Alper Ozturk <[email protected]>
45
* SPDX-FileCopyrightText: 2025 Tobias Kaminsky <[email protected]>
56
* SPDX-License-Identifier: AGPL-3.0-or-later
67
*/

app/src/main/java/com/nextcloud/ui/fileactions/ClientIntegration.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Nextcloud - Android Client
33
*
4-
* SPDX-FileCopyrightText: 2025 Your Name <your@email.com>
4+
* SPDX-FileCopyrightText: 2025 Alper Ozturk <alper.ozturk@nextcloud.com>
55
* SPDX-License-Identifier: AGPL-3.0-or-later
66
*/
77

@@ -168,9 +168,8 @@ class ClientIntegration(
168168
}
169169
val response = method.getResponseBodyAsString()
170170

171-
var output: ClientIntegrationUI?
172171
try {
173-
output = parseClientIntegrationResult(response)
172+
val output = parseClientIntegrationResult(response)
174173
if (output.root != null && output.root?.rows != null) {
175174
startClientIntegration(endpoint, output)
176175
} else {
@@ -189,7 +188,7 @@ class ClientIntegration(
189188
}
190189

191190
private suspend fun showMessage(message: String) = withContext(Dispatchers.Main) {
192-
DisplayUtils.showSnackMessage(sheet.view, message)
191+
DisplayUtils.showSnackMessage(sheet.requireActivity(), message)
193192
}
194193

195194
private fun parseTooltipResult(response: String?): TooltipResponse {

0 commit comments

Comments
 (0)