Java Code Examples for com.socks.jiandan.net.RequestManager#cancelAll()

The following examples show how to use com.socks.jiandan.net.RequestManager#cancelAll() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BaseFragment.java    From JianDan_OkHttpWithVolley with Apache License 2.0 5 votes vote down vote up
@Override
public void onDestroy() {
    super.onDestroy();
    JDApplication.getRefWatcher(getActivity()).watch(this);
    RequestManager.cancelAll(this);
    ImageLoadProxy.getImageLoader().clearMemoryCache();
}
 
Example 2
Source File: BaseFragment.java    From JianDan with Apache License 2.0 5 votes vote down vote up
@Override
public void onDestroy() {
    super.onDestroy();
    JDApplication.getRefWatcher(getActivity()).watch(this);
    RequestManager.cancelAll(this);
    ImageLoadProxy.getImageLoader().clearMemoryCache();
}
 
Example 3
Source File: BaseFragment.java    From JianDan_OkHttp with Apache License 2.0 5 votes vote down vote up
@Override
public void onDestroy() {
    super.onDestroy();
    JDApplication.getRefWatcher(getActivity()).watch(this);
    RequestManager.cancelAll(this);
    ImageLoadProxy.getImageLoader().clearMemoryCache();
}
 
Example 4
Source File: BaseActivity.java    From JianDan_OkHttpWithVolley with Apache License 2.0 4 votes vote down vote up
@Override
protected void onDestroy() {
    super.onDestroy();
    JDApplication.getRefWatcher(this).watch(this);
    RequestManager.cancelAll(this);
}
 
Example 5
Source File: BaseActivity.java    From JianDan with Apache License 2.0 4 votes vote down vote up
@Override
protected void onDestroy() {
    super.onDestroy();
    JDApplication.getRefWatcher(this).watch(this);
    RequestManager.cancelAll(this);
}
 
Example 6
Source File: BaseActivity.java    From JianDan_OkHttp with Apache License 2.0 4 votes vote down vote up
@Override
protected void onDestroy() {
    super.onDestroy();
    JDApplication.getRefWatcher(this).watch(this);
    RequestManager.cancelAll(this);
}