Skip to content

Conversation

@liveHarshit
Copy link
Member

Fixes #631

Changes: MainActivity.kt

@liveHarshit liveHarshit changed the title fix: App stuck when open event from favorites (#631) fix: App stuck when open event from favorites Oct 14, 2018
} else {
loadFragment(EventsFragment())
navigation.selectedItemId = navigation_events
}
Copy link
Member

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

Copy link
Member Author

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.

Copy link
Member

@nikit19 nikit19 left a 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 ?

@liveHarshit
Copy link
Member Author

@nikit19 No, because this problem is in ticket details fragment which is placed on rootLayout but #629 is for event fragment which placed on frameContainer.

@liveHarshit
Copy link
Member Author

@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) {
Copy link
Member

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

@nikit19 nikit19 merged commit 727ac13 into fossasia:development Nov 1, 2018
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.

3 participants