Scoping Retrofit calls to Activity/Fragment in Android
Kirtan ThakkarLife is all about learning
I have had a tough time managing retrofit calls on android while making a REST calls to display something on UI. When the activity/fragment is destroyed you don't need the result anymore. You simply need to cancel that call else it may leak your activity.