android / nowinandroid

A fully functional Android app built entirely with Kotlin and Jetpack Compose
Apache License 2.0
15.93k stars 2.81k forks source link

Navigation to InterestScreen from SearchScreen fixed #1416

Open KarimAly12 opened 2 months ago

KarimAly12 commented 2 months ago

When users open the search in the Interest screen and search for a non-existing item, they can navigate back to the Interest screen by clicking on "Interests" in the Search screen

Thanks for submitting a pull request. Please include the following information.

What I have done and why When users open the search in the Interest screen and search for a non-existing item, they can navigate back to the Interest screen by clicking on "Interests" in the Search screen. Before that Interests was navigating back to the interest screen

I used popBackStack() function in onInterestClick(). This will navigate back by removing the search screen from the back of the stack and then navigation to the Interest screen.

Fixes #<1372>

How I'm testing it

Choose at least one:

Do tests pass?

Is this your first pull request?

google-cla[bot] commented 2 months ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.