remove an unnecessary toast after granding audio permissions

This commit is contained in:
tibbi 2016-06-17 23:05:43 +02:00
parent 876d74bbda
commit 98c4ed72e4

View File

@ -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();
} }
} }
} }