fix: 合并主线代码

This commit is contained in:
2023-05-16 11:18:50 +08:00
parent 038947fc42
commit 8a3ccbd0f5
449 changed files with 35 additions and 34114 deletions

3
.gitignore vendored
View File

@@ -14,4 +14,5 @@
.externalNativeBuild
.cxx
app/release/
ocr/build
app/build/
ocr/build/

View File

@@ -105,6 +105,7 @@ import java.io.File;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
@@ -437,9 +438,10 @@ public class PicturesActivity extends BaseActivity implements View.OnClickListen
pictureResultFlowable.subscribeOn(Schedulers.io()) // 指定上游为IO线程
.observeOn(Schedulers.io())
.doOnNext(new Consumer<Map<String, Object>>() {
.doOnNext(new io.reactivex.functions.Consumer<Map<String, Object>>() {
@Override
public void accept(Map<String, Object> map) throws Exception {
int fileIndex = (int) map.get("index");
PictureResult pictureResult = (PictureResult) map.get("picture");
// 图片和paper.txt处理
@@ -464,9 +466,9 @@ public class PicturesActivity extends BaseActivity implements View.OnClickListen
}
})
.observeOn(AndroidSchedulers.mainThread())
.doOnNext(new Consumer<Map>() {
.doOnNext(new io.reactivex.functions.Consumer<Map<String, Object>>() {
@Override
public void accept(Map map) throws Exception {
public void accept(Map<String, Object> map) {
// 绘制图标
initMarker(booleanExtra);
// 设置主界面拍照个数显示
@@ -1481,7 +1483,7 @@ public class PicturesActivity extends BaseActivity implements View.OnClickListen
} else {
disposable = Observable.interval(1000L, TimeUnit.MILLISECONDS, Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Consumer<Long>() {
.subscribe(new io.reactivex.functions.Consumer<Long>() {
@Override
public void accept(Long aLong) throws Exception {
camera.takePictureSnapshot();

2
ocr/.gitignore vendored
View File

@@ -1 +1 @@
/build
build

Some files were not shown because too many files have changed in this diff Show More