dm77/barcodescanner — pull request #43 by cujo (2014-12-17 09:53:08+00:00)
Title: Fixes wrong preview size in portrait mode

Hi! There is a problem with preview size in portrait mode, we need to swap x and y dimensions to get right targetRatio otherwise it fallback to closest height which is wrong anyway. This problem become critical when camera reports both portrait and landscape sizes in one list (Moto Atrix2 for ex.) and landscape aspect size are choosen in portrait mode as a result.