Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit df620959 authored by hainiaochen's avatar hainiaochen
Browse files

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
parent 3e13eb5a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment