app/src/main/java/com/sap/cloud/mobile/fiori/demo/onboarding/QRCodeReaderActionHandlerImpl.java
@Override
    public void validateBarcode(@NonNull Fragment fragment, @Nullable Barcode barcode)
            throws BarcodeValidationException, InterruptedException {
        Log.i(TAG, "validating barcode: ".concat(barcode == null ? "null" : barcode.displayValue));
        ((DemoApplication) fragment.getActivity().getApplication()).delay();
        if (barcode == null) {
            Log.i(TAG, "barcode is null");
            throw new BarcodeValidationException("Null barcode");
        }
    }
/**
     * Validates all non-null barcodes after a user defined delay. If the validation is
     * interrupted the result is false.
     *
     * @param fragment the caller fragment of the QR code reader activity
     * @param barcode  the barcode which will be validated
     * @return true if the barcode is not null and the validation is not interrupted
     */
Validates all non-null barcodes after a user defined delay. If the validation is
interrupted the result is false.

@param fragment the caller fragment of the QR code reader activity
@param barcode  the barcode which will be validated
@return true if the barcode is not null and the validation is not interrupted
Validates all non - null barcodes after a user defined delay . If the validation is interrupted the result is false . @param fragment the caller fragment of the QR code reader activity @param barcode the barcode which will be validated @return true if the barcode is not null and the validation is not interrupted
@Override
    public void validateBarcode(@NonNull Fragment fragment, @Nullable Barcode barcode)
            throws BarcodeValidationException, InterruptedException {
        Log.i(TAG, "validating barcode: ".concat(barcode == null ? "null" : barcode.displayValue));
        ((DemoApplication) fragment.getActivity().getApplication()).delay();
        if (barcode == null) {
            Log.i(TAG, "barcode is null");
            throw new BarcodeValidationException("Null barcode");
        }
    }
@ Override public void validateBarcode ( @ NonNull Fragment fragment , @ Nullable Barcode barcode ) throws BarcodeValidationException , InterruptedException { Log . i ( TAG , "validating barcode: " . concat ( barcode == null ? "null" : barcode . displayValue ) ) ; ( ( DemoApplication ) fragment . getActivity ( ) . getApplication ( ) ) . delay ( ) ; if ( barcode == null ) { Log . i ( TAG , "barcode is null" ) ; throw new BarcodeValidationException ( "Null barcode" ) ; } }
Validates all non-null barcodes after a user defined delay.
Validates all non - null barcodes after a user defined delay .