-
Notifications
You must be signed in to change notification settings - Fork 555
fix: App stuck when open event from favorites #641
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
Conversation
| } else { | ||
| loadFragment(EventsFragment()) | ||
| navigation.selectedItemId = navigation_events | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is getting too complicated. Think of a different solution
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is getting too complicated. Think of a different solution
Updated. please review.
nikit19
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#629 is this a related problem and can this also be solved with your solution ?
|
@iamareebjamal Please review it. |
| val currentFragment = this.supportFragmentManager.findFragmentById(R.id.frameContainer) | ||
| if (currentFragment !is EventsFragment) { | ||
| val rootFragment = this.supportFragmentManager.findFragmentById(R.id.rootLayout) | ||
| if (currentFragment !is EventsFragment && rootFragment !is EventDetailsFragment) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also special casing but OK, it was already there
Fixes #631
Changes: MainActivity.kt