Skip to content

Commit

Permalink
Add new "critically low" foreground trim level
Browse files Browse the repository at this point in the history
Differential Revision: D10369483

fbshipit-source-id: c4a55701c31e8a9375f0ab6a9238e5247758d57d
  • Loading branch information
dalves authored and facebook-github-bot committed Oct 13, 2018
1 parent 0f86a1f commit 9745eb8
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -19,7 +19,10 @@ public enum MemoryTrimType {
/** The application is approaching the device-specific Java heap limit. */
OnCloseToDalvikHeapLimit(0.5),

/** The system as a whole is running out of memory, and this application is in the foreground. */
/** The system as a whole is running critically low on memory, and app is in the foreground. */
OnSystemMemoryCriticallyLowWhileAppInForeground(1),

/** The system as a whole is running low of memory, and this application is in the foreground. */
OnSystemLowMemoryWhileAppInForeground(0.5),

/** The system as a whole is running out of memory, and this application is in the background. */
Expand Down

0 comments on commit 9745eb8

Please sign in to comment.