Skip to content

Commit

Permalink
添加对录制视频的大小限制
Browse files Browse the repository at this point in the history
  • Loading branch information
chengzichen committed May 25, 2017
1 parent c649b7a commit ca0c38e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions gallery/src/main/java/com/dhc/gallery/ui/CameraActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import android.hardware.Camera;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.MotionEvent;
Expand All @@ -41,7 +40,6 @@
import java.io.File;
import java.util.ArrayList;

import static android.content.ContentValues.TAG;
import static com.dhc.gallery.ui.GalleryActivity.GALLERY_CONFIG;

/**
Expand Down Expand Up @@ -248,10 +246,8 @@ public void run() {
return;
}
}
Log.d(TAG, "run " + mGalleryConfig.getLimitRecordSize());
if (mGalleryConfig.getLimitRecordSize() != 0) {
int b = getSize(cameraFile);
Log.d(TAG, "run " + b);
if (b > 0 && b >= mGalleryConfig.getLimitRecordSize() * 1024 * 1024) {
if (vedioReleased())
return;
Expand Down

0 comments on commit ca0c38e

Please sign in to comment.