9
0
mirror of https://gitee.com/shuto/customCamera.git synced 2024-10-06 10:22:07 +08:00

Remove useless code.

This commit is contained in:
Christophe BOUCAUT 2015-06-19 18:03:33 +02:00
parent 8d55c005ff
commit 1498a84f7b

View File

@ -741,13 +741,6 @@ public class CameraActivity extends Activity {
int width = size.width;
float res = (width * height) / 1024000;
// Return a smaller image for now
if (res > 4f) {
opt.inSampleSize = 4;
} else if (res > 3f) {
opt.inSampleSize = 2;
}
// Preview from camera
photoTaken = BitmapFactory.decodeByteArray(data, 0, data.length, opt);