-
Notifications
You must be signed in to change notification settings - Fork 260
Migrate ResultsScreen to use Nav3 #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
df7c28c
7bb6ccd
048c502
500f5dc
50e8395
2c19c4a
4647f0f
7c64ea7
d5ef994
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
…vigation.kt using Nav3 instead of driving them from CreationScreen.kt # Conflicts: # feature/results/src/main/java/com/android/developers/androidify/customize/ImageRenderer.kt # Conflicts: # feature/results/src/main/java/com/android/developers/androidify/customize/CustomizeState.kt
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,13 +54,13 @@ class CustomizeExportViewModel @Inject constructor( | |
| } | ||
|
|
||
| fun setArguments( | ||
| resultImageUrl: Bitmap, | ||
| resultImageUrl: Uri, | ||
| originalImageUrl: Uri?, | ||
| ) { | ||
| _state.update { | ||
| CustomizeExportState( | ||
| originalImageUrl, | ||
| exportImageCanvas = it.exportImageCanvas.copy(imageBitmap = resultImageUrl), | ||
| exportImageCanvas = it.exportImageCanvas.copy(imageUri = resultImageUrl), | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is where its losing state on restoring from background. we can keep the imageUri, but we should probably add the loaded image to the State to be able to draw it. When it comes back from being in the background, we will need to rehydrate the state to load up the bitmap again. |
||
| ) | ||
| } | ||
| } | ||
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.