I am showing a prgressbar when volley request is going on and hiding progressbar inside onError and onResponse callback
Inside onStop method of activity I am calling cancelAll(TAG)
But issue is if network request is going on and someone hits lock screen onStop is called and request gets cancelled but since there is no call back for it I am unable to update UI and activity keeps showing progressbar.
There has to be a callback for it.
Does anyone has solution on it.
How can I update my UI if request is cancelled.
I want to hide progressbar and show a retry button once request is cancelled how can I achieve that