Skip to content

Commit

Permalink
Fix empty state condition
Browse files Browse the repository at this point in the history
  • Loading branch information
grote committed Aug 2, 2023
1 parent b2a2515 commit 60d770f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/org/onionshare/android/ui/share/ShareUi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ import org.onionshare.android.ui.theme.topBar
private val bottomSheetPeekHeight = 60.dp

private fun isEmptyState(shareState: ShareUiState, filesState: FilesState): Boolean {
return (shareState == ShareUiState.AddingFiles || shareState is ShareUiState.ErrorAddingFile) &&
filesState.files.isEmpty()
return shareState.allowsModifyingFiles && filesState.files.isEmpty()
}

@Composable
Expand Down

0 comments on commit 60d770f

Please sign in to comment.