Fotoapparat icon indicating copy to clipboard operation
Fotoapparat copied to clipboard

Focus mode parameters are in the wrong order at Java Wiki page

Open likman opened this issue 5 years ago • 0 comments

Please change this:

.focusMode(SelectorsKt.firstAvailable(  // (optional) use the first focus mode which is supported by device
   FocusModeSelectorsKt. continuousFocusPicture(),
   FocusModeSelectorsKt.autoFocus(),        // in case if continuous focus is not available on device, auto focus will be used
   FocusModeSelectorsKt.fixed()             // if even auto focus is not available - fixed focus mode will be used
))

to this

.focusMode(SelectorsKt.firstAvailable(  // (optional) use the first focus mode which is supported by device         
   FocusModeSelectorsKt.fixed(), // if even auto focus is not available - fixed focus mode will be used            
   FocusModeSelectorsKt.autoFocus(), // in case if continuous focus is not available on device, auto focus will be used
   FocusModeSelectorsKt.continuousFocusPicture(),                
))

Library uses last parameter first.

likman avatar Dec 10 '19 12:12 likman