Skip to content

Conversation

@phileo
Copy link

@phileo phileo commented Apr 10, 2017

Fixed layout issues with the capture FAB in the demo (google#120)
getSupportedAspectRatio returns aspect ratios of preview sizes for which
picture sizes doesn't exist. This results in NullPointerException. So
getSuportedAspectRatio now depends on suported Picture Sizes
Resolves: google#88
TextureView/SurfaceView was added twice to CameraView. So when
requestLayout is called on CameraView blank surface comes up. Note that
CameraView parent is FrameLayout, so last added view comes in front.
In the solution, I have simply removed last added
TextureView/SurfaceView before adding new TextureView/SurfaceView inside
start function on CameraView. This makes sure that new Surface is
created for each start.

Resolves: google#111
It is not safe to traverse and remove from the same set. It will result
is `ConcurrentModificationException` or `NullpointerException` in case
of ArrayMap. So new `Set<AspectRatio>` was added to traverse the
ArrayMap.

Check commit: 6ceaf86
@phileo phileo merged commit a61304a into dynamicleap:master Apr 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants