OSDN Git Service

Fix for N4 Video and inclusion of CaptureIntent
authorI-Jong Lin <ijonglin@google.com>
Thu, 30 Apr 2015 21:23:28 +0000 (14:23 -0700)
committerI-Jong Lin <ijonglin@google.com>
Thu, 30 Apr 2015 22:05:04 +0000 (15:05 -0700)
commit436aba83744b104d000ae34fead732c5271d3144
tree0a0e8a1dbe1b1edd08c4b86cc240dcf541bd5d7f
parenta49c2be37cf75db0a28807783782c4fd1e1bb471
Fix for N4 Video and inclusion of CaptureIntent

Bug: 20694189

Workaround b/19271661 needs to specifically applied in
these circumstances only:
1.  Phone is Nexus4
2.  CaptureModule is enabled
3.  Photo Mode, OR Capture Intent Photo is enabled.

Since we are passing the CameraActivity in TextureViewHelper,
it has enough context to know everything.  Previous implementation
used an invalid CameraProvider to signal that Camera2 was enabled.
Now we just ask the CameraActivity directly.

Change-Id: I47f841ae6476bc034a7ad3f487c40616eed05b71
src/com/android/camera/TextureViewHelper.java