clear UIL disk cache on startup
This commit is contained in:
parent
8da85b9157
commit
74615af614
@ -154,9 +154,6 @@ public class CommonActivity extends ActionBarActivity {
|
|||||||
|
|
||||||
Log.d(TAG, "m_compatMode=" + m_compatMode);
|
Log.d(TAG, "m_compatMode=" + m_compatMode);
|
||||||
|
|
||||||
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(getApplicationContext()).build();
|
|
||||||
ImageLoader.getInstance().init(config);
|
|
||||||
|
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,6 +51,8 @@ import com.google.gson.Gson;
|
|||||||
import com.google.gson.JsonElement;
|
import com.google.gson.JsonElement;
|
||||||
import com.google.gson.JsonObject;
|
import com.google.gson.JsonObject;
|
||||||
import com.google.gson.reflect.TypeToken;
|
import com.google.gson.reflect.TypeToken;
|
||||||
|
import com.nostra13.universalimageloader.core.ImageLoader;
|
||||||
|
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;
|
||||||
|
|
||||||
public class OnlineActivity extends CommonActivity {
|
public class OnlineActivity extends CommonActivity {
|
||||||
private final String TAG = this.getClass().getSimpleName();
|
private final String TAG = this.getClass().getSimpleName();
|
||||||
@ -173,6 +175,10 @@ public class OnlineActivity extends CommonActivity {
|
|||||||
|
|
||||||
setStatusBarTint();
|
setStatusBarTint();
|
||||||
|
|
||||||
|
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(getApplicationContext()).build();
|
||||||
|
ImageLoader.getInstance().init(config);
|
||||||
|
ImageLoader.getInstance().clearDiskCache();
|
||||||
|
|
||||||
//m_pullToRefreshAttacher = PullToRefreshAttacher.get(this);
|
//m_pullToRefreshAttacher = PullToRefreshAttacher.get(this);
|
||||||
|
|
||||||
if (isOffline) {
|
if (isOffline) {
|
||||||
|
Loading…
Reference in New Issue
Block a user