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 1, 2023
1 parent a3d58d8 commit c1198c8
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 c1198c8

Please sign in to comment.