OSDN Git Service

Modify Camera settings scope enforcement from crash to warning
authorAlan Newberger <alann@google.com>
Wed, 23 Jul 2014 01:46:41 +0000 (18:46 -0700)
committerAlan Newberger <alann@google.com>
Wed, 23 Jul 2014 01:46:41 +0000 (18:46 -0700)
commit62c20bfb063743d636300ba49b89f16c6f2546d0
tree31c141457a948ab09b1a8aa4522ab60c1b3e0f81
parentdde95571f3c1ea5f733dbdcf7a8e4ffe15a83e08
Modify Camera settings scope enforcement from crash to warning

Several bugs have appeared particularly for flash settings, where the app
is attempting to get a scope per the new SettingsManager, and the camera
is already closed meaning there is no valid scope. With this change, such
situations will be logged with call stack traces, so if we see deviant
user behavior we'll know the source. Monkeys should no longer trip settings
crashes with this change.

Bug: 16483952
Bug: 16491601
Change-Id: I26487bc58909a05183563f59ae3cfba571f2504e
src/com/android/camera/CameraActivity.java