OSDN Git Service

Hide no active camera NPE by defaulting to camera device -1
authorPaul Rohde <codelogic@google.com>
Mon, 11 May 2015 18:29:21 +0000 (11:29 -0700)
committerPaul Rohde <codelogic@google.com>
Mon, 11 May 2015 18:34:42 +0000 (11:34 -0700)
commitd46ac0034a0fe7b700c4f39499dd22c2c5da5300
tree1979b4db895e8af24810c3eb68ca51c46a784136
parentedd5f8086326786390a7c74dda3f0a6c9ba933b5
Hide no active camera NPE by defaulting to camera device -1

NPE's can occur if no camera device is currently active. It's
not feasable to rewire all parts of the codebase for this
release to properly access the target camera device. This
fix may lead to inconsistent setting persistance if in places
where a NPE would otherwise occur.

Bug: 21026362

Change-Id: I76c5b5fab429f61238a1ba91c0c52e839a431573
src/com/android/camera/CameraActivity.java
src/com/android/camera/app/CameraController.java