mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-01-22 19:40:12 +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)
|
@OnClick(R.id.toggle_photo_video)
|
||||||
public void handleToggleVideo() {
|
public void handleToggleVideo() {
|
||||||
toggleVideo();
|
toggleVideo();
|
||||||
|
checkButtons();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void toggleVideo() {
|
private void toggleVideo() {
|
||||||
@ -281,7 +282,9 @@ public class MainActivity extends AppCompatActivity implements SensorEventListen
|
|||||||
hideTimer();
|
hideTimer();
|
||||||
isInPhotoMode = !isInPhotoMode;
|
isInPhotoMode = !isInPhotoMode;
|
||||||
toggleCameraBtn.setVisibility(View.VISIBLE);
|
toggleCameraBtn.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void checkButtons() {
|
||||||
if (isInPhotoMode) {
|
if (isInPhotoMode) {
|
||||||
initPhotoButtons();
|
initPhotoButtons();
|
||||||
} else {
|
} else {
|
||||||
@ -343,6 +346,7 @@ public class MainActivity extends AppCompatActivity implements SensorEventListen
|
|||||||
|
|
||||||
if (isVideoCaptureIntent && isInPhotoMode) {
|
if (isVideoCaptureIntent && isInPhotoMode) {
|
||||||
toggleVideo();
|
toggleVideo();
|
||||||
|
checkButtons();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user