Created
December 4, 2017 14:50
-
-
Save FireZenk/e8f280496f9230dde134f33be86058da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun isLowMemory(): Boolean { | |
val memoryLimit: Long = (getTotalInternalMemorySize() * DEFAULT_THRESHOLD_PERCENTAGE) / 100; | |
return availableMemorySize() <= tenPercentLimit; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment