调整低内存报警处置登等级

nx2024TEMP
Matthew 8 months ago
parent f308d2bb66
commit 49b95c4562

@ -166,7 +166,8 @@ public class MicroPhotoService extends Service {
@Override
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.
final Context context = getApplicationContext();
try {

Loading…
Cancel
Save