-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
451 additions
and
466 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
compose-ui/src/main/java/com/github/sikv/photos/compose/ui/BackAction.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.github.sikv.photos.compose.ui | ||
|
||
import androidx.compose.material3.Icon | ||
import androidx.compose.material3.IconButton | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.res.painterResource | ||
import androidx.compose.ui.res.stringResource | ||
|
||
@Composable | ||
fun BackAction( | ||
onBackClick: () -> Unit | ||
) { | ||
IconButton( | ||
onClick = onBackClick | ||
) { | ||
Icon( | ||
painter = painterResource(id = R.drawable.ic_arrow_back_24dp), | ||
contentDescription = stringResource(id = R.string.navigate_back) | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
feature/search/src/main/java/com/github/sikv/photos/search/SearchQuery.kt
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
feature/search/src/main/java/com/github/sikv/photos/search/SearchUiState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.github.sikv.photos.search | ||
|
||
import androidx.paging.PagingData | ||
import com.github.sikv.photos.domain.ListLayout | ||
import com.github.sikv.photos.domain.Photo | ||
import com.github.sikv.photos.domain.PhotoSource | ||
import kotlinx.coroutines.flow.Flow | ||
|
||
internal data class SearchUiState( | ||
val query: String? = null, | ||
val photoSources: List<PhotoSource> = emptyList(), | ||
val photos: Map<PhotoSource, Flow<PagingData<Photo>>?> = emptyMap(), | ||
val listLayout: ListLayout = ListLayout.GRID | ||
) |
79 changes: 61 additions & 18 deletions
79
feature/search/src/main/java/com/github/sikv/photos/search/SearchViewModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.