commit | df620959c961c9c2895c60550e67498fe023d2ac | [log] [tgz] |
---|---|---|
author | hainiaochen <chenhnaaa@gmail.com> | Thu May 11 12:42:04 2023 +0800 |
committer | hainiaochen <chenhnaaa@gmail.com> | Thu May 11 13:48:17 2023 +0800 |
tree | 2f35a11bef13dd3e9d0d11f1eb2d7a83fd108c81 | |
parent | 3e13eb5a266750dd81c0a5b432788c6fe9502aa3 [diff] |
Close unused Image before acquire new one Fix IllegalStateException: maxImages (30) has already been acquired, call #close before acquiring more. Before onImageRequestCompleted, onImageAvailable may be called multiple times, with only the last one being used. And acquireLatestImage has limitations, so it is necessary to close unused images. Change-Id: I2cc1da31596d2458b31d14340b151ac0d8311ca7