OSDN Git Service

Avoid crash if user disables Camera while Gallery is open
authorAlan Newberger <alann@google.com>
Wed, 30 Oct 2013 18:42:14 +0000 (11:42 -0700)
committerAlan Newberger <alann@google.com>
Wed, 30 Oct 2013 18:44:13 +0000 (11:44 -0700)
commitebbcc3944adcc01846128d1bdacc7c8b1c8cdb35
tree2519ca73b85502d51a286b7895481ac9a8871758
parentec036c64173ac581f460b25330248fda2a6cb57a
Avoid crash if user disables Camera while Gallery is open

We cache the camera availability check so in the corner case that
a user disables their camera in package manager, avoid crashing.
Not necessary to do more sophisticated handling since this is a
narrow case initiated by user.

Bug: 11435559
Change-Id: I54d5015cdd9b64aec5c9da9a393824d3b41201a1
src/com/android/gallery3d/util/GalleryUtils.java