RedApparat / Fotoapparat

Making Camera for Android more friendly. 📸
Apache License 2.0
3.82k stars 405 forks source link

Update selectors validation #145

Closed Diolor closed 6 years ago

Diolor commented 6 years ago

This is a bugfix by comments by @jpribble in #143 : Fix range validation & allow null value for fps range & iso.

Alternatively we could always set one, however reason to allow null over force value:

If lists are ensured to always contain a value then we could discuss to have a default value and not allow nulls

friendoye commented 6 years ago

I'm not sure, but getSupportedFpsRange always returns non-empty list with int[] (at least, for Camera API 1). Also some phones allow you to set ISO parameter to "auto".

GrishmaPromact commented 6 years ago

@Diolor ohk. Thanks.

Diolor commented 6 years ago

I will close this as it has been fixed in v2.0