移除USB摄像头的处理

streaming
Matthew 4 months ago
parent 63264f8e1c
commit fc3f5fafa1

@ -403,8 +403,6 @@ public class MainActivity extends AppCompatActivity {
binding.btnCameraInfo.setOnClickListener(new View.OnClickListener() { binding.btnCameraInfo.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View view) { public void onClick(View view) {
MicroPhotoService.setOtgState(true);
MicroPhotoService.setCam3V3Enable(true); MicroPhotoService.setCam3V3Enable(true);
Runnable runnable = new Runnable() { Runnable runnable = new Runnable() {
@ -415,7 +413,6 @@ public class MainActivity extends AppCompatActivity {
Log.d(TAG, cameraInfo); Log.d(TAG, cameraInfo);
MicroPhotoService.setCam3V3Enable(false); MicroPhotoService.setCam3V3Enable(false);
MicroPhotoService.setOtgState(false);
MicroPhotoService.infoLog(cameraInfo); MicroPhotoService.infoLog(cameraInfo);
Toast.makeText(view.getContext(), cameraInfo, Toast.LENGTH_LONG).show(); Toast.makeText(view.getContext(), cameraInfo, Toast.LENGTH_LONG).show();

Loading…
Cancel
Save