Skip to content

Commit

Permalink
去掉Toast
Browse files Browse the repository at this point in the history
  • Loading branch information
ailiwean committed May 3, 2020
1 parent eb81dcc commit d22385d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
12 changes: 6 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId "com.android.NBZxing"
minSdkVersion 26
targetSdkVersion 28
versionCode 1
versionName "1.0"
versionCode 2
versionName "1.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand All @@ -26,9 +26,9 @@ android {
}

dependencies {
implementation project(path: ':module_camera')
// api "androidx.appcompat:appcompat:1.1.0"
// implementation 'com.github.ailiwean:NBZxing:0.0.3'
// api 'com.google.zxing:core:3.3.3'
// implementation project(path: ':module_camera')
api "androidx.appcompat:appcompat:1.1.0"
implementation 'com.github.ailiwean:NBZxing:0.0.4'
api 'com.google.zxing:core:3.3.3'

}
2 changes: 1 addition & 1 deletion app/src/main/java/com/android/NBZxing/CusZxingView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import com.ailiwean.core.zxing.ScanTypeConfig
class CusZxingView @JvmOverloads constructor(context: Context, attributeSet: AttributeSet? = null, def: Int = 0) : ZxingCameraView(context, attributeSet, def) {

override fun resultBack(content: String) {
// Toast.makeText(context, content, Toast.LENGTH_SHORT).show()
Toast.makeText(context, content, Toast.LENGTH_SHORT).show()
}

/***
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ abstract class ZxingCameraView @JvmOverloads constructor(context: Context, attri
scanSucHelper()
if (it.obj is Result) {
showQRLoc((it.obj as Result).pointF, it.obj.toString())
Toast.makeText(context, (it.obj as Result).isRotate.toString(), Toast.LENGTH_SHORT).show()
}
}
LIGHT_CHANGE -> {
Expand Down

0 comments on commit d22385d

Please sign in to comment.