Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy-budiyev committed May 21, 2022
1 parent 41252df commit 243d354
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ dependencyResolutionManagement {
Step 2. Add dependency:
```gradle
dependencies {
implementation 'com.github.yuriy-budiyev:code-scanner:2.2.0'
implementation 'com.github.yuriy-budiyev:code-scanner:2.3.0'
}
```
Add camera permission and hardware feature to AndroidManifest.xml (Don't forget about dynamic permissions on API >= 23):
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ apply plugin: 'com.android.library'
apply plugin: 'maven-publish'

ext {
libraryVersion = '2.2.0'
libraryVersion = '2.3.0'
publishedGroupId = 'com.budiyev.android'
}

Expand All @@ -41,7 +41,7 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 32
versionCode 60
versionCode 61
versionName libraryVersion
}

Expand Down
40 changes: 40 additions & 0 deletions src/main/java/com/budiyev/android/codescanner/CodeScannerView.java
Original file line number Diff line number Diff line change
Expand Up @@ -746,11 +746,21 @@ public boolean isFlashButtonVisible() {
return mFlashButton.getVisibility() == VISIBLE;
}

/**
* Auto focus button on icon
*
* @see #setAutoFocusButtonOnIcon
*/
@NonNull
public Drawable getAutoFocusButtonOnIcon() {
return mAutoFocusButtonOnIcon;
}

/**
* Auto focus button on icon
*
* @param icon Icon drawable
*/
public void setAutoFocusButtonOnIcon(@NonNull final Drawable icon) {
Objects.requireNonNull(icon);
final boolean changed = icon != mAutoFocusButtonOnIcon;
Expand All @@ -761,11 +771,21 @@ public void setAutoFocusButtonOnIcon(@NonNull final Drawable icon) {
}
}

/**
* Auto focus button off icon
*
* @see #setAutoFocusButtonOffIcon
*/
@NonNull
public Drawable getAutoFocusButtonOffIcon() {
return mAutoFocusButtonOffIcon;
}

/**
* Auto focus button off icon
*
* @param icon Icon drawable
*/
public void setAutoFocusButtonOffIcon(@NonNull final Drawable icon) {
Objects.requireNonNull(icon);
final boolean changed = icon != mAutoFocusButtonOffIcon;
Expand Down Expand Up @@ -881,11 +901,21 @@ public void setFlashButtonPaddingVertical(@Px final int padding) {
}
}

/**
* Flash button on icon
*
* @see #setFlashButtonOnIcon
*/
@NonNull
public Drawable getFlashButtonOnIcon() {
return mFlashButtonOnIcon;
}

/**
* Flash button on icon
*
* @param icon Icon drawable
*/
public void setFlashButtonOnIcon(@NonNull final Drawable icon) {
Objects.requireNonNull(icon);
final boolean changed = icon != mFlashButtonOnIcon;
Expand All @@ -896,11 +926,21 @@ public void setFlashButtonOnIcon(@NonNull final Drawable icon) {
}
}

/**
* Flash button off icon
*
* @see #setFlashButtonOffIcon
*/
@NonNull
public Drawable getFlashButtonOffIcon() {
return mFlashButtonOffIcon;
}

/**
* Flash button off icon
*
* @param icon Icon drawable
*/
public void setFlashButtonOffIcon(@NonNull final Drawable icon) {
Objects.requireNonNull(icon);
final boolean changed = icon != mFlashButtonOffIcon;
Expand Down

0 comments on commit 243d354

Please sign in to comment.