Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/android-library.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÁlvaro Brey <alvaro.brey@nextcloud.com>2022-09-29 17:48:20 +0300
committerÁlvaro Brey (Rebase PR Action) <AlvaroBrey@users.noreply.github.com>2022-09-29 18:16:57 +0300
commit8cd3436c291f102a6443818f9aa6e15a9070244b (patch)
treeaf13568d5f55cf06fd526a31c2f3205bbd3d009e
parentd7fabe501bfeed93029cd5fdc9e4258f2651ae88 (diff)
Fix ktlintdashboard
Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
-rw-r--r--library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashBoardButtonType.kt2
-rw-r--r--library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashboardGetWidgetItemsRemoteOperation.kt11
-rw-r--r--library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashboardListWidgetsRemoteOperation.kt11
-rw-r--r--library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashboardWidgetItem.kt2
4 files changed, 15 insertions, 11 deletions
diff --git a/library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashBoardButtonType.kt b/library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashBoardButtonType.kt
index d1833397..3ca61f23 100644
--- a/library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashBoardButtonType.kt
+++ b/library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashBoardButtonType.kt
@@ -27,8 +27,10 @@ import com.google.gson.annotations.SerializedName
enum class DashBoardButtonType() {
@SerializedName("new")
NEW,
+
@SerializedName("more")
MORE,
+
@SerializedName("setup")
SETUP
}
diff --git a/library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashboardGetWidgetItemsRemoteOperation.kt b/library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashboardGetWidgetItemsRemoteOperation.kt
index d6e550e8..18455a69 100644
--- a/library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashboardGetWidgetItemsRemoteOperation.kt
+++ b/library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashboardGetWidgetItemsRemoteOperation.kt
@@ -4,20 +4,20 @@
* @author Tobias Kaminsky
* Copyright (C) 2022 Tobias Kaminsky
* Copyright (C) 2022 Nextcloud GmbH
- *
+ *
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
- *
+ *
*/
package com.nextcloud.android.lib.resources.dashboard
@@ -44,7 +44,8 @@ class DashboardGetWidgetItemsRemoteOperation(val id: String) :
val status = client.execute(get)
if (status == HttpStatus.SC_OK) {
- val list = getServerResponse(get,
+ val list = getServerResponse(
+ get,
object :
TypeToken<ServerResponse<HashMap<String, List<DashboardWidgetItem>>>>() {}
).ocs.data
diff --git a/library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashboardListWidgetsRemoteOperation.kt b/library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashboardListWidgetsRemoteOperation.kt
index ad87171a..0beb1e16 100644
--- a/library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashboardListWidgetsRemoteOperation.kt
+++ b/library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashboardListWidgetsRemoteOperation.kt
@@ -4,20 +4,20 @@
* @author Tobias Kaminsky
* Copyright (C) 2022 Tobias Kaminsky
* Copyright (C) 2022 Nextcloud GmbH
- *
+ *
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
- *
+ *
*/
package com.nextcloud.android.lib.resources.dashboard
@@ -42,7 +42,8 @@ class DashboardListWidgetsRemoteOperation : OCSRemoteOperation<HashMap<String, D
val status = client.execute(get)
if (status == HttpStatus.SC_OK) {
- val list = getServerResponse(get,
+ val list = getServerResponse(
+ get,
object : TypeToken<ServerResponse<HashMap<String, DashboardWidget>>>() {}
).ocs.data
diff --git a/library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashboardWidgetItem.kt b/library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashboardWidgetItem.kt
index eb73af57..94d932fd 100644
--- a/library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashboardWidgetItem.kt
+++ b/library/src/main/java/com/nextcloud/android/lib/resources/dashboard/DashboardWidgetItem.kt
@@ -26,5 +26,5 @@ data class DashboardWidgetItem(
val title: String,
val subtitle: String,
val link: String,
- val iconUrl: String,
+ val iconUrl: String
)