mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-26 06:47:03 +03:00
Clear Glide cache when manually swipe down to refresh
Signed-off-by: stefan-niedermann <info@niedermann.it>
This commit is contained in:
parent
76b8416649
commit
f1a480eb62
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue