mirror of
https://gitee.com/shuto/customCamera.git
synced 2024-10-06 02:12:07 +08:00
Remove useless code.
This commit is contained in:
parent
8d55c005ff
commit
1498a84f7b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user