mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-01-22 11:29:59 +01:00
remove an unnecessary toast after granding audio permissions
This commit is contained in:
parent
876d74bbda
commit
98c4ed72e4
@ -261,6 +261,7 @@ public class MainActivity extends AppCompatActivity implements SensorEventListen
|
||||
@OnClick(R.id.toggle_photo_video)
|
||||
public void handleToggleVideo() {
|
||||
toggleVideo();
|
||||
checkButtons();
|
||||
}
|
||||
|
||||
private void toggleVideo() {
|
||||
@ -281,7 +282,9 @@ public class MainActivity extends AppCompatActivity implements SensorEventListen
|
||||
hideTimer();
|
||||
isInPhotoMode = !isInPhotoMode;
|
||||
toggleCameraBtn.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
private void checkButtons() {
|
||||
if (isInPhotoMode) {
|
||||
initPhotoButtons();
|
||||
} else {
|
||||
@ -343,6 +346,7 @@ public class MainActivity extends AppCompatActivity implements SensorEventListen
|
||||
|
||||
if (isVideoCaptureIntent && isInPhotoMode) {
|
||||
toggleVideo();
|
||||
checkButtons();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user