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

Skip to content
Commit 8300dc15 authored by Jayant Chowdhary's avatar Jayant Chowdhary
Browse files

camera2 vndk: Don't try to retrieve ACameraDevice in CallbackHandler.



Its possible that the device is closing, however, it hasn't stopped its
looper yet. In that case, if we receive a callback, we'll receive a null ACameraDevice. Cache the
camera id during CallbackHandler's construction instead, like the ndk does.

Bug: 130910407

Test: AImageReaderVendorTest

Change-Id: Ia7cd40ff1ce4fe52abb5528c68e3557523a5367d
Signed-off-by: default avatarJayant Chowdhary <jchowdhary@google.com>
parent 8263e351
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