-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Rx -> Coroutine] Convert Flowable to Flow in MapController (#1837)
* Convert flowable to flow in MapController for streaming camera update requests * Update unit tests [currently all of them with non-empty stream are failing] * Change method param for panAndZoomCamera to coordinates * Simplify code using withIndex() * Rename to _cameraPosition * Move to BaseMapViewModel * Simplify the camera update flow by directly emitting positions from the coroutines * Remove MapController.kt and tests * Move logic for getting last saved position to a method
- Loading branch information
1 parent
7101fc7
commit 63f7ca4
Showing
8 changed files
with
96 additions
and
265 deletions.
There are no files selected for viewing
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
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
92 changes: 0 additions & 92 deletions
92
ground/src/main/java/com/google/android/ground/ui/map/MapController.kt
This file was deleted.
Oops, something went wrong.
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.