diff options
author | Andrew Dolgov <[email protected]> | 2014-10-16 01:26:54 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-10-16 01:26:54 +0400 |
commit | 74615af61409a3bb4087651ad57039ec960ba750 (patch) | |
tree | e26cb409eb13b10fd94ec40f43c86947d9225697 /src/org | |
parent | 8da85b9157ef4ffd8b04a8b817f7c6f51c641c68 (diff) |
clear UIL disk cache on startup
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/fox/ttrss/CommonActivity.java | 3 | ||||
-rw-r--r-- | src/org/fox/ttrss/OnlineActivity.java | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/org/fox/ttrss/CommonActivity.java b/src/org/fox/ttrss/CommonActivity.java index bf05d33b..e941060b 100644 --- a/src/org/fox/ttrss/CommonActivity.java +++ b/src/org/fox/ttrss/CommonActivity.java @@ -154,9 +154,6 @@ public class CommonActivity extends ActionBarActivity { Log.d(TAG, "m_compatMode=" + m_compatMode); - ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(getApplicationContext()).build(); - ImageLoader.getInstance().init(config); - super.onCreate(savedInstanceState); } diff --git a/src/org/fox/ttrss/OnlineActivity.java b/src/org/fox/ttrss/OnlineActivity.java index ab7a6ab1..45bb6168 100644 --- a/src/org/fox/ttrss/OnlineActivity.java +++ b/src/org/fox/ttrss/OnlineActivity.java @@ -51,6 +51,8 @@ import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.reflect.TypeToken; +import com.nostra13.universalimageloader.core.ImageLoader; +import com.nostra13.universalimageloader.core.ImageLoaderConfiguration; public class OnlineActivity extends CommonActivity { private final String TAG = this.getClass().getSimpleName(); @@ -173,6 +175,10 @@ public class OnlineActivity extends CommonActivity { setStatusBarTint(); + ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(getApplicationContext()).build(); + ImageLoader.getInstance().init(config); + ImageLoader.getInstance().clearDiskCache(); + //m_pullToRefreshAttacher = PullToRefreshAttacher.get(this); if (isOffline) { |