Do a GC after processing each photo

This will probably do nothing in practice, but at least we tried...
This commit is contained in:
Ming Ming 2022-05-12 16:34:11 +08:00
parent 762fe521b2
commit f3f72619cd

View file

@ -398,6 +398,7 @@ private open class ImageProcessorCommandTask(context: Context) :
val cmd = params[0]!!
return try {
val outUri = handleCommand(cmd)
System.gc()
ImageProcessorCompletedEvent(outUri)
} catch (e: Throwable) {
Log.e(TAG, "[doInBackground] Failed while handleCommand", e)