Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1a480eb authored by stefan-niedermann's avatar stefan-niedermann
Browse files

Clear Glide cache when manually swipe down to refresh

parent 76b84166
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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();
            }
        });