mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
New Test for contract
This commit is contained in:
parent
9815482244
commit
b3ec1ba492
1 changed files with 6 additions and 1 deletions
|
@ -16,7 +16,12 @@ public class PilldroidScanContract extends ActivityResultContract<ScanOptions, S
|
||||||
@NonNull
|
@NonNull
|
||||||
@Override
|
@Override
|
||||||
public Intent createIntent(@NonNull Context context, ScanOptions input) {
|
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
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue