Skip to content

Commit

Permalink
修改README
Browse files Browse the repository at this point in the history
  • Loading branch information
maning0303 committed Aug 18, 2021
1 parent f271fd5 commit 779d42c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,17 @@
super.onDestroy();
mScanSurfaceView.onDestroy();
}

@Override
public void onBackPressed() {
//多点扫描结果点显示,可以取消
if (mScanSurfaceView != null && mScanSurfaceView.isResultPointViewShow()) {
mScanSurfaceView.hideResultPointView();
mScanSurfaceView.restartScan();
return;
}
super.onBackPressed();
}
}

3:生成二维码:
Expand Down Expand Up @@ -263,18 +274,18 @@
```

## 版本记录:
v2.1.9:
1.扫描结果点显示位置偏移优化
2.扫描结果点View支持手动取消
3.扫描网格线显示优化
v2.1.8:
1.扫描结果点显示位置偏移修复
v2.1.7:
1.支持多二维码同时扫出
2.优化扫描结果点
3.zxing版本自定义
v2.1.6:
1.优化代码,防止内存泄露
2.生成二维码支持修改颜色和边距
3.整体转为AndroidX


## 感谢:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ public void stopScan(View view) {

@Override
public void onBackPressed() {
if (mScanSurfaceView.isResultPointViewShow()) {
//多点扫描结果点显示,可以取消
if (mScanSurfaceView != null && mScanSurfaceView.isResultPointViewShow()) {
mScanSurfaceView.hideResultPointView();
mScanSurfaceView.restartScan();
return;
Expand Down

0 comments on commit 779d42c

Please sign in to comment.