|
|
@ -166,7 +166,8 @@ public class MicroPhotoService extends Service {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onTrimMemory(int level) {
|
|
|
|
public void onTrimMemory(int level) {
|
|
|
|
if (level >= ComponentCallbacks2.TRIM_MEMORY_MODERATE) {
|
|
|
|
Log.w(TAG, "onTrimMemory level=" + level);
|
|
|
|
|
|
|
|
if (level >= ComponentCallbacks2.TRIM_MEMORY_RUNNING_CRITICAL) {
|
|
|
|
// Clear the caches. Note all pending requests will be removed too.
|
|
|
|
// Clear the caches. Note all pending requests will be removed too.
|
|
|
|
final Context context = getApplicationContext();
|
|
|
|
final Context context = getApplicationContext();
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|