Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private boolean canRequest = true;
- void onResume(){
- if(canRequest){
- canRequest = false;
- fetchDataUsingRetroFit(new ResponseCallBack(){
- void onResponse(){
- canRequest = true;
- }
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement