rename some functions

This commit is contained in:
tibbi 2016-07-10 00:05:14 +02:00
parent b33ecdcc20
commit 4ed3adddf5
1 changed files with 5 additions and 5 deletions

View File

@ -174,7 +174,7 @@ public class MainActivity extends AppCompatActivity implements SensorEventListen
} }
} else if (requestCode == AUDIO_PERMISSION) { } else if (requestCode == AUDIO_PERMISSION) {
if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
toggleVideo(); togglePhotoVideo();
} else { } else {
Utils.showToast(getApplicationContext(), R.string.no_audio_permissions); Utils.showToast(getApplicationContext(), R.string.no_audio_permissions);
if (mIsVideoCaptureIntent) if (mIsVideoCaptureIntent)
@ -275,12 +275,12 @@ public class MainActivity extends AppCompatActivity implements SensorEventListen
} }
@OnClick(R.id.toggle_photo_video) @OnClick(R.id.toggle_photo_video)
public void handleToggleVideo() { public void handleTogglePhotoVideo() {
toggleVideo(); togglePhotoVideo();
checkButtons(); checkButtons();
} }
private void toggleVideo() { private void togglePhotoVideo() {
if (!checkCameraAvailable()) { if (!checkCameraAvailable()) {
return; return;
} }
@ -366,7 +366,7 @@ public class MainActivity extends AppCompatActivity implements SensorEventListen
resumeCameraItems(); resumeCameraItems();
if (mIsVideoCaptureIntent && mIsInPhotoMode) { if (mIsVideoCaptureIntent && mIsInPhotoMode) {
toggleVideo(); togglePhotoVideo();
checkButtons(); checkButtons();
} }
} }