fix: 修改了拍摄间隔选择失效的问题
This commit is contained in:
parent
b8719ccfaa
commit
b329f9dc54
@ -37,7 +37,7 @@ android {
|
||||
applicationId "com.navinfo.outdoor"
|
||||
minSdkVersion 24
|
||||
targetSdkVersion 30
|
||||
versionCode 103
|
||||
versionCode 104
|
||||
versionName "8.230619-正式版-OCR"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
|
@ -1479,10 +1479,16 @@ public class PicturesActivity extends BaseActivity implements View.OnClickListen
|
||||
}
|
||||
|
||||
private void startTakePhoto(int radioPicture) {
|
||||
if (radioPicture == 1) {
|
||||
if (radioPicture == 1) { // 手动拍摄
|
||||
camera.takePictureSnapshot();
|
||||
} else {
|
||||
disposable = Observable.interval(1000L, TimeUnit.MILLISECONDS, Schedulers.io())
|
||||
long period = 1000L;
|
||||
if (radioPicture == 3) {
|
||||
period = 2000L;
|
||||
} else if (radioPicture == 4) {
|
||||
period = 500L;
|
||||
}
|
||||
disposable = Observable.interval(period, TimeUnit.MILLISECONDS, Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new io.reactivex.functions.Consumer<Long>() {
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user