Skip to content

Commit

Permalink
fix: Add methods to CameraCompatActivity and update method visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentKobz committed Apr 18, 2024
1 parent b877d14 commit ff4e180
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public void setAutocompletionItems(List<ManualInputItem> items, int threshold) {
// Camera
////////////////////////////////////////////////////////////////////////////////////////////////

public void startCameraActivity() {
private void startCameraActivity() {
if (hasCameraScannerSdk && cameraScannerActivity != null) {
Intent intent = new Intent(this, cameraScannerActivity);

Expand Down
2 changes: 1 addition & 1 deletion enioka_scan_camera/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ android {
}

ext {
mavenArtifactId = "provider-cs-camera"
mavenArtifactId = "scanner-camera"
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,25 @@ private void initCameraScanner() {
}


////////////////////////////////////////////////////////////////////////////////////////////////
// Configuration hooks
////////////////////////////////////////////////////////////////////////////////////////////////

@SuppressWarnings("unused")
public void setAutocompletion(List<String> autocompletion, int threshold) {
for (String item : autocompletion) {
this.autocompletionItems.add(new ManualInputItem(item, false));
}
this.threshold = threshold;
}

@SuppressWarnings("unused")
public void setAutocompletionItems(List<ManualInputItem> items, int threshold) {
this.autocompletionItems = items;
this.threshold = threshold;
}


////////////////////////////////////////////////////////////////////////////////////////////////
// Permissions
////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit ff4e180

Please sign in to comment.