Skip to content
This repository was archived by the owner on Apr 17, 2020. It is now read-only.
This repository was archived by the owner on Apr 17, 2020. It is now read-only.

Doesn’t support Binary Eye as the barcode scanner #149

Description

@andrewshadura

The IntentIntegrator class limits the apps able to handle barcode scanner intents to the known apps only in the private method initializeConfiguration:

targetApplications = TARGET_ALL_KNOWN;

while TARGET_ALL_KNOWN is defined in the following way:

public static final List<String> TARGET_ALL_KNOWN = list(
        BSPLUS_PACKAGE,             // Barcode Scanner+
        BSPLUS_PACKAGE + ".simple", // Barcode Scanner+ Simple
        BS_PACKAGE                  // Barcode Scanner
        // What else supports this intent?
    );

This can be overridden in app/src/main/kotlin/net/syncthing/lite/utils/FragmentIntentIntegrator.kt by calling setTargetApplications with a list extended with the id of Binary Eye.

Alternatively, it is possible to have a private copy of IntentIntegrator and drop String targetAppPackage = findTargetAppPackage(intentScan); and intentScan.setPackage(targetAppPackage); calls completely.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions