Skip to content

Commit

Permalink
it was only an '!'
Browse files Browse the repository at this point in the history
  • Loading branch information
kaysiz committed Feb 18, 2019
1 parent 82c1858 commit d9472cd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.cricket">


<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

<application
android:allowBackup="true"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/example/cricket/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void onSurfaceTextureUpdated(SurfaceTexture surface) {
private CameraDevice.StateCallback mCameraDeviceStateCallback = new CameraDevice.StateCallback() {
@Override
public void onOpened(CameraDevice camera) {

mCameraDevice = camera;
if (mIsRecording) {
try {
Expand Down Expand Up @@ -402,7 +402,7 @@ private static Size chooseOptimalSize(Size[] choices, int width, int height) {
private void createVideoFolder() {
File movieFile = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES);
mVideoFolder = new File(movieFile, "codehesionCrikect");
if (mVideoFolder.exists()) {
if (!mVideoFolder.exists()) {
mVideoFolder.mkdirs();
}
}
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@
android:layout_marginTop="513dp"
android:contentDescription="@string/video_button"
app:srcCompat="@mipmap/btn_video_online" />

</RelativeLayout>

0 comments on commit d9472cd

Please sign in to comment.