change KeyScanningActivity to work with latest barcode library version