Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
beradeep committed Aug 30, 2024
1 parent e66d4c1 commit edf0ce4
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ class LocalViewModel : ViewModel() {
pagingSourceFactory = { DbHolder.database.photoDao().getAllPaging() }
).flow.cachedIn(viewModelScope)


val localPhotosCount: StateFlow<Int> =
DbHolder.database.photoDao().getAllCountFlow()
.stateIn(viewModelScope, SharingStarted.WhileSubscribed(5_000), 0)


fun uploadMultiplePhotos(uris: List<Uri>) {
viewModelScope.launch(Dispatchers.IO) {
uris.fastForEach { uri ->
Expand Down

0 comments on commit edf0ce4

Please sign in to comment.