perf(memory): drop disposable caches on pressure

This commit is contained in:
zarzet
2026-07-16 10:32:33 +07:00
parent c75139450a
commit ef89352d09
9 changed files with 100 additions and 3 deletions
@@ -3147,6 +3147,12 @@ class MainActivity: FlutterFragmentActivity() {
}
result.success(null)
}
"releaseMemoryUnderPressure" -> {
withContext(Dispatchers.IO) {
Gobackend.releaseMemoryUnderPressure()
}
result.success(null)
}
"setMetadataLanguage" -> {
val tag = call.argument<String>("tag") ?: ""
withContext(Dispatchers.IO) {