Skip to content

Commit

Permalink
Merge branch 'master' of github.com:yukimuon/OpenCamera into master
Browse files Browse the repository at this point in the history
  • Loading branch information
changliu98 committed Nov 29, 2020
2 parents b7bfaa0 + 3ac6a66 commit d1fd5ad
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Android/app/src/main/java/com/cns/encom/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ public void run() {
}
});


DataOutputStream out;
try{
out = new DataOutputStream(socket.getOutputStream());
Expand Down Expand Up @@ -341,10 +340,15 @@ public void run() {
catch(InterruptedException e){break;}
}

mSurfaceHolder.setFormat(PixelFormat.TRANSPARENT);
mSurfaceHolder.setFormat(PixelFormat.OPAQUE);
cameraCheckbox = findViewById(R.id.checkBox);
cameraCheckbox.setChecked(false);
runOnUiThread(new Runnable() {
@Override
public void run() {
mSurfaceHolder.setFormat(PixelFormat.TRANSPARENT);
mSurfaceHolder.setFormat(PixelFormat.OPAQUE);
CheckBox cameraCheckbox = findViewById(R.id.checkBox);
cameraCheckbox.setChecked(false);
}
});
}

int getRandomNumber(int min, int max){
Expand Down

0 comments on commit d1fd5ad

Please sign in to comment.