Skip to content
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

Can now send a value to previous navigation without popping back #225

Conversation

TommyDL-Infomaniak
Copy link
Contributor

No description provided.

@TommyDL-Infomaniak TommyDL-Infomaniak added the enhancement New feature or request label Sep 27, 2024
@TommyDL-Infomaniak TommyDL-Infomaniak self-assigned this Sep 27, 2024
Copy link

sonarcloud bot commented Sep 27, 2024

@KevinBoulongne KevinBoulongne self-requested a review October 1, 2024 11:56
@@ -436,10 +436,10 @@ fun ActivityResult.whenResultIsOk(completion: (Intent?) -> Unit) {
/**
* Send a value to the previous navigation
*/
fun <T> Fragment.setBackNavigationResult(key: String, value: T) {
fun <T> Fragment.setBackNavigationResult(key: String, value: T, withPopBackStack: Boolean = true) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename withPopBackStack into withoutPopBackStack, and invert its value.

@tevincent
Copy link
Contributor

Does this PR still makes sense ?

@tevincent tevincent added the rebase Add this label to rebase the PR label Oct 3, 2024
@github-actions github-actions bot removed the rebase Add this label to rebase the PR label Oct 3, 2024
@tevincent tevincent closed this Oct 3, 2024
@tevincent tevincent deleted the imp/setBackNavigationResult-without-popBackStack branch October 3, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants