commit | 8300dc1549954d8e50431ca9da0cf0601a8e14fa | [log] [tgz] |
---|---|---|
author | Jayant Chowdhary <jchowdhary@google.com> | Fri Apr 19 16:08:44 2019 -0700 |
committer | Jayant Chowdhary <jchowdhary@google.com> | Fri Apr 19 16:31:34 2019 -0700 |
tree | 59d0d9cd9b88aaf6d45c764883a860cf7b189f68 | |
parent | 8263e3519b6801f019e471efe4a6045b7046e4d3 [diff] |
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: Jayant Chowdhary <jchowdhary@google.com>