commit | 7fc046b0f29e78d0cf5a4066c69f826ef4eda6fd | [log] [tgz] |
---|---|---|
author | Tyler Gunn <tgunn@google.com> | Tue Sep 02 12:08:25 2014 -0700 |
committer | Tyler Gunn <tgunn@google.com> | Tue Sep 02 12:08:25 2014 -0700 |
tree | 3ef0a3feb53f5fd5edc1ed44f36b7746dea8199b | |
parent | e0635a6b20c639f505fa356b15b2b7d82e86ebf2 [diff] |
Fixing NPE in InCallCameraManager. 1. Changed InCallCameraManager to check for null context before getting the CAMERA_SERVICE. 2. Added try/catch around getSystemService call to ensure failures don't crash InCall UI. 3. Changed so that the InCallCameraManager is lazy loaded, only when it is actually used (previously it was initialized on InCall startup). Bug: 17355717 Change-Id: Ie5debaece1e5dca4d3c5b6a586a188f518696ab8