feat: support multi instances, fix display name resource

- Allow multiple instances for pCloud
- Use correct display name resource
This commit is contained in:
Manuel Jenny 2021-03-16 14:49:44 +01:00
parent 85e2b16232
commit c9a73ced8f
No known key found for this signature in database
GPG Key ID: 1C80FE62B2BEAA18

View File

@ -18,9 +18,11 @@ enum class CloudTypeModel(builder: Builder) {
.withCloudImageResource(R.drawable.onedrive) //
.withVaultImageResource(R.drawable.onedrive_vault) //
.withVaultSelectedImageResource(R.drawable.onedrive_vault_selected)), //
PCLOUD(Builder("PCLOUD", R.string.cloud_names_dropbox) //
.withCloudImageResource(R.drawable.cloud_type_dropbox) //
.withCloudImageLargeResource(R.drawable.cloud_type_dropbox_large)), //
PCLOUD(Builder("PCLOUD", R.string.cloud_names_pcloud) //
//TODO: change icons for pCloud
.withCloudImageResource(R.drawable.storage_type_local) //
.withCloudImageLargeResource(R.drawable.storage_type_local_large) //
.withMultiInstances()), //
WEBDAV(Builder("WEBDAV", R.string.cloud_names_webdav) //
.withCloudImageResource(R.drawable.webdav) //
.withVaultImageResource(R.drawable.webdav_vault) //