New Test for contract

This commit is contained in:
Jacques Foucry 2022-02-28 20:42:29 +01:00
parent 9815482244
commit b3ec1ba492

View file

@ -16,7 +16,12 @@ public class PilldroidScanContract extends ActivityResultContract<ScanOptions, S
@NonNull
@Override
public Intent createIntent(@NonNull Context context, ScanOptions input) {
return input.createScanIntent(context);
return Intent(context, CaptureActivity.class).apply {
action = Intents.Scan.ACTION
putExtra(Intents.Scan.BEEP_ENABLED, true)
putExtra(Intents.Scan.MIXED_SCAN, "Intents.Scan.MIXED_SCAN")
putExtra(Intents.Scan.INVERTED, "Intents.Scan.INVERTED")
}
}
@Override