Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class AccountsManagementAdapter(private val accountListener: AccountAdapterListe

sealed class AccountRecyclerItem {
data class AccountItem(val account: Account) : AccountRecyclerItem()
object NewAccount : AccountRecyclerItem()
data object NewAccount : AccountRecyclerItem()
}

class AccountManagementViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ class MainFileListViewModel(
}

sealed interface FileListUiState {
object Loading : FileListUiState
data object Loading : FileListUiState
data class Success(
val folderToDisplay: OCFile?,
val folderContent: List<OCFileWithSyncInfo>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ package com.owncloud.android.presentation.migration

sealed class MigrationState {

object MigrationIntroState : MigrationState()
data object MigrationIntroState : MigrationState()

data class MigrationChoiceState(
val legacyStorageSpaceInBytes: Long,
) : MigrationState()

object MigrationProgressState : MigrationState()
data object MigrationProgressState : MigrationState()

object MigrationCompletedState : MigrationState()
data object MigrationCompletedState : MigrationState()
}
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ class SynchronizeFileUseCase(
)

sealed interface SyncType {
object FileNotFound : SyncType
data object FileNotFound : SyncType
data class ConflictDetected(val etagInConflict: String) : SyncType
data class DownloadEnqueued(val workerId: UUID?) : SyncType
data class UploadEnqueued(val workerId: UUID?) : SyncType
object AlreadySynchronized : SyncType
data object AlreadySynchronized : SyncType
}
}