do not clear glide cache on every app exit
This commit is contained in:
parent
6feba2f5eb
commit
27118b9583
@ -490,16 +490,6 @@ public class MasterActivity extends OnlineActivity implements HeadlinesEventList
|
|||||||
|
|
||||||
Date date = new Date();
|
Date date = new Date();
|
||||||
|
|
||||||
if (isFinishing()) {
|
|
||||||
AsyncTask.execute(new Runnable() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
Glide.get(MasterActivity.this).clearDiskCache();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isFinishing() || date.getTime() - m_lastWidgetRefresh > 60*1000) {
|
if (isFinishing() || date.getTime() - m_lastWidgetRefresh > 60*1000) {
|
||||||
m_lastWidgetRefresh = date.getTime();
|
m_lastWidgetRefresh = date.getTime();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user