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

feat: Handle prepod Deeplink #247

Merged
merged 22 commits into from
Dec 17, 2024
Merged

feat: Handle prepod Deeplink #247

merged 22 commits into from
Dec 17, 2024

Conversation

sirambd
Copy link
Member

@sirambd sirambd commented Dec 11, 2024

No description provided.

Copy link
Contributor

@tevincent tevincent left a comment

Choose a reason for hiding this comment

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

After a deeplink, it seems the button in the NavigationRail does not work anymore. Happens on phone and tablet.

Screen_recording_20241211_163140.mp4

@LouisCAD LouisCAD self-assigned this Dec 16, 2024
Copy link
Contributor

@FabianDevel FabianDevel left a comment

Choose a reason for hiding this comment

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

Seems like it doesn't work if the app is already open.
Also what is the wanted behaviour for the link ? shouldn't it stay in the "received" list afterhand ? Here it disappear when backing

val currentBackStackEntry = [email protected]
val hasDeepLink = currentBackStackEntry?.arguments?.parcelableExtra<Intent>(NavController.KEY_DEEP_LINK_INTENT) != null
val isNavigateToStartDestination = startDestination.route == destination::class.qualifiedName
restoreState = !hasDeepLink || !isNavigateToStartDestination
Copy link
Contributor

Choose a reason for hiding this comment

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

This break the Ui of the "sent" destination by creating a huge blink as Sentis the startDestination

sirambd and others added 20 commits December 17, 2024 17:36
Those are needed only if the given lambda reads another state.

It wasn't the case here, hence the removal.

This commit also introduces a single-use private function
that helps clarify that we want to show navigation while
we're in a top-level destination.
This simplifies the code a little bit, and saves a few CPU cycles.
Copy link

sonarqubecloud bot commented Dec 17, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
2 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@sirambd sirambd merged commit 011ed7c into main Dec 17, 2024
6 checks passed
@sirambd sirambd deleted the deeplink branch December 17, 2024 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants