Created
October 14, 2020 19:12
-
-
Save raulh82vlc/4578ef674726fb80119e5b6e75bd5e0d to your computer and use it in GitHub Desktop.
TweetsListUI java destroying any resources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TweetsListUI extends ViewUI { | |
@Inject | |
SearchViewDelegate viewDelegate; | |
@Inject | |
StateFlowHandler stateFlowHandler; | |
// ... | |
@Override | |
public void onDestroy() { | |
stateFlowHandler.cancel(); | |
viewDelegate.cancel(); | |
super.onDestroy(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment