Clear Glide cache when manually swipe down to refresh

Signed-off-by: stefan-niedermann <info@niedermann.it>
This commit is contained in:
stefan-niedermann 2020-02-22 11:23:53 +01:00
parent 76b8416649
commit f1a480eb62

View file

@ -327,6 +327,12 @@ public class NotesListViewActivity extends AppCompatActivity implements ItemAdap
swipeRefreshLayout.setRefreshing(false);
askForNewAccount(this);
} else {
Log.i(TAG, "Clearing Glide memory cache");
Glide.get(this).clearMemory();
new Thread(() -> {
Log.i(TAG, "Clearing Glide disk cache");
Glide.get(getApplicationContext()).clearDiskCache();
}).start();
synchronize();
}
});