We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actually (info.androidhive:barcode-reader:1.1.5), the autofocus can't be set from code. Can you add something like setAutofocus(true/false) ?
If that can help, now I use this workaround:
public static class BarcodeReaderEx extends BarcodeReader{ public BarcodeReaderEx(){ super(); setAutofocus(true); } public void setAutofocus(boolean autofocus){ //this.autoFocus = autofocus; try { Field f = BarcodeReader.class.getDeclaredField("autoFocus"); //NoSuchFieldException f.setAccessible(true); f.setBoolean(this,autofocus); //Boolean af = (Boolean) f.get(this); //IllegalAccessException }catch(Exception ignore){ } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Actually (info.androidhive:barcode-reader:1.1.5), the autofocus can't be set from code.
Can you add something like setAutofocus(true/false) ?
If that can help, now I use this workaround:
The text was updated successfully, but these errors were encountered: