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

Commit c2580e1d authored by Shai Barack's avatar Shai Barack
Browse files

Clear cached on TRIM_MEMORY_BACKGROUND

TRIM_MEMORY_MODERATE is not sent since UDC.

Bug: 329427668
Change-Id: I468384b30583eb6f08f3bab3657215f42050b042
parent d0adf99c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -369,7 +369,7 @@ class ContactPhotoManagerImpl extends ContactPhotoManager implements Callback {
    if (DEBUG) {
      LogUtil.d("ContactPhotoManagerImpl.onTrimMemory", "onTrimMemory: " + level);
    }
    if (level >= ComponentCallbacks2.TRIM_MEMORY_MODERATE) {
    if (level >= ComponentCallbacks2.TRIM_MEMORY_BACKGROUND) {
      // Clear the caches.  Note all pending requests will be removed too.
      clear();
    }