commit | 2914f845c1d53f4a3b9aac68998b521290a7192c | [log] [tgz] |
---|---|---|
author | Paul Rohde <codelogic@google.com> | Thu Apr 30 11:08:23 2015 -0700 |
committer | Paul Rohde <codelogic@google.com> | Fri May 01 14:59:29 2015 -0700 |
tree | 13120370c6186fccf7698d6b9950bae1ed5339ea | |
parent | 1fe3cb806057878c136866871a8a26f76b282560 [diff] |
Check for a potentially destroyed activity before startPreview. There is a small chance that the activity can be destroyed between the time the camera is created and the preview is started. This can lead to unchecked NPE's across the app because most code assumes that there will never be a case where activity objects are accessed after onDestroy. Bug: 20097425 Change-Id: I2904ffba451ded2417a806c83fd12e4f62611150