-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Two presenters and one user case: how can link them ? #291
Comments
@aeroxr1 I guess you can keep the references of the instances of the inner fragments in the outer fragment and simply call the public method to update the UI state. And if you want to access presenter in inner fragment then you can add inner fragments using ChildFragmentManager and then from inner fragment you can call getParentFragment() to access the public methods of parent fragment. |
I already done in that way, but i don't know if it is much clean.. In this way in the view there is some sort of business logic. It knows that he has to call update method on its inner fragments. |
i have a fragment with two inner fragment. For the outside fragment I write a presenter with a user case "UserPressRedButton"
when the UserPressRedButton action is completed I have to update the presentation layer of the two inner fragment
In which way can link all together ?
The text was updated successfully, but these errors were encountered: