diff --git a/app/src/main/java/com/nextcloud/client/NominatimClient.kt b/app/src/main/java/com/nextcloud/client/NominatimClient.kt index f4100b2fb6..7d8f35b07f 100644 --- a/app/src/main/java/com/nextcloud/client/NominatimClient.kt +++ b/app/src/main/java/com/nextcloud/client/NominatimClient.kt @@ -12,7 +12,7 @@ import com.google.gson.annotations.SerializedName import com.owncloud.android.MainApp import okhttp3.OkHttpClient import okhttp3.Request -import okhttp3.internal.http.HTTP_OK +import java.net.HttpURLConnection.HTTP_OK import java.net.URLEncoder class NominatimClient constructor(geocoderBaseUrl: String, email: String) { diff --git a/app/src/main/java/com/owncloud/android/db/UploadResult.java b/app/src/main/java/com/owncloud/android/db/UploadResult.java index 7d491c81b9..b73f4103a3 100644 --- a/app/src/main/java/com/owncloud/android/db/UploadResult.java +++ b/app/src/main/java/com/owncloud/android/db/UploadResult.java @@ -37,7 +37,8 @@ public enum UploadResult { CANNOT_CREATE_FILE(20), LOCAL_STORAGE_NOT_COPIED(21), QUOTA_EXCEEDED(22), - SAME_FILE_CONFLICT(23); + SAME_FILE_CONFLICT(23), + USER_DISABLED(24); private final int value; @@ -101,6 +102,8 @@ public enum UploadResult { return QUOTA_EXCEEDED; case 23: return SAME_FILE_CONFLICT; + case 24: + return USER_DISABLED; } return UNKNOWN; } @@ -161,6 +164,8 @@ public enum UploadResult { return CANNOT_CREATE_FILE; case QUOTA_EXCEEDED: return QUOTA_EXCEEDED; + case USER_DISABLED: + return USER_DISABLED; default: return UNKNOWN; } diff --git a/app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java b/app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java index 955e3e8769..d4a654b5dc 100644 --- a/app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java +++ b/app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java @@ -1371,6 +1371,10 @@ public class FileDisplayActivity extends FileActivity case MAINTENANCE_MODE: showInfoBox(R.string.maintenance_mode); break; + + case USER_DISABLED: + showInfoBox(R.string.disabled_user); + break; case NO_NETWORK_CONNECTION: showInfoBox(R.string.offline_mode); diff --git a/app/src/main/java/com/owncloud/android/ui/adapter/UploadListAdapter.java b/app/src/main/java/com/owncloud/android/ui/adapter/UploadListAdapter.java index e4d08e2335..4d91816b91 100755 --- a/app/src/main/java/com/owncloud/android/ui/adapter/UploadListAdapter.java +++ b/app/src/main/java/com/owncloud/android/ui/adapter/UploadListAdapter.java @@ -798,6 +798,9 @@ public class UploadListAdapter extends SectionedRecyclerViewAdapterDo you really want to delete the selected items? Do you really want to delete the selected items and their contents? Server is in maintenance mode + Account is disabled No internet connection You\'re Offline, But Work Continues Even without an internet connection, you can organize your folders, create files. Once you\'re back online, your pending actions will automatically sync. diff --git a/build.gradle b/build.gradle index 50865b2337..4f8401c758 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ */ buildscript { ext { - androidLibraryVersion ="638326e14bc234ca3285852af461d41e6e08d1aa" + androidLibraryVersion ="d46ecea34cec32a0a4cd43a0be7a1aa42ea6bd5b" androidPluginVersion = '8.7.3' androidxMediaVersion = '1.4.1' androidxTestVersion = "1.6.1"