commit | 9fa43dad068f7348f9a66fe3805416282a034332 | [log] [tgz] |
---|---|---|
author | Robin Lee <rgl@google.com> | Mon Dec 30 13:03:07 2019 +0100 |
committer | Robin Lee <rgl@google.com> | Mon Dec 30 13:05:46 2019 +0100 |
tree | 0e07c3314e10013112f4d2c5d53c7f145d94fd0c | |
parent | d130e3aa2edc4b97339dcfd28e8866b0f8e64a65 [diff] |
Make getCameraIdListNoLazy handle no service case If we have sCameraServiceDisabled, we know for sure that calling addListener on the mCameraService is going to fail with NPE, so the best option is to just return an empty list. Fix: 146994502 Test: atest android.camera.cts.HeifWriterTest Change-Id: Ie3a1457fbace0879a5d66600acd83541a9d78182