commit | 590e9aa71bd5ea398a87d0db18ec7bc5e449ab6f | [log] [tgz] |
---|---|---|
author | Danny Baumann <dannybaumann@web.de> | Wed Nov 30 10:40:29 2016 +0100 |
committer | Jackeagle <jackeagle102@gmail.com> | Tue Nov 12 02:49:34 2019 -0500 |
tree | b9e9e5a6c8dc6a082e1c0033279c168bd81f17e1 | |
parent | cab7e9d895487b3bbdf0d436841a0ed76bfedd73 [diff] |
Initialize focus manager in onResume(). Since commit 87b4a40d588a7ae8a61cb353c4cff8df37f7b483 moved camera initialization (and focus manager initialization with it) to a background thread, the focus manager initialization now races against the onPreviewRectChanged() call triggered by SurfaceView initialization in the main thread, potentially leaving the focus manager in an uninitialized state that prevented taking pictures. Change-Id: I8cf650d6a67768acd131b3cddad175ed198e0838