Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Add getViewOrThrow() for convenience #87

Merged
merged 2 commits into from
Apr 26, 2017
Merged

Conversation

ghost
Copy link

@ghost ghost commented Apr 26, 2017

As you may have read @passsy blog post about how we should handle detached views in your presenter implementations, I've added a getViewOrThrow() method for convenience to the TiPresenter which either returns the attached view or throws an IllegalStateException.

…s the attached view or throws an IllegalStateException.
@ghost ghost added the Ready for Review label Apr 26, 2017
@ghost ghost requested a review from passsy April 26, 2017 12:28
Copy link
Contributor

@passsy passsy left a comment

Choose a reason for hiding this comment

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

Improve error message and documenation

@passsy passsy merged commit b932a76 into master Apr 26, 2017
@passsy passsy deleted the feature/getViewOrThrow branch April 26, 2017 20:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

1 participant