-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement "Open Cart After Creation" functionality
- Added DataStore preference `openCartsAfterCreation` to toggle automatic navigation after adding a cart. - Updated `HomeViewModel` to observe the DataStore setting and navigate to the newly created cart when enabled. - Modified `HomeScreen` composable to handle navigation based on the ViewModel's state. - Fixed cartId handling to ensure the correct cart is opened automatically. - Removed navigation logic from `HomeRepository` to maintain separation of concerns. - Enhanced code clarity by adding explicit type annotations and cleaning up unnecessary lint suppressions. - Set `android:windowSoftInputMode="adjustResize"` for all activities to ensure proper UI resizing when the keyboard appears. - Updated the changelog to document the new feature and related improvements.
- Loading branch information
Mihai-Cristian Condrea
committed
Dec 30, 2024
1 parent
60aabf8
commit aa418ed
Showing
25 changed files
with
451 additions
and
412 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
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
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.