Bump up push media max edge to 2048 and max size to 4MB

Fixes #672
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2016-10-25 12:43:48 -07:00
parent 23544fae8a
commit b54a271a75

View File

@ -6,7 +6,7 @@ import org.thoughtcrime.securesms.util.Util;
public class PushMediaConstraints extends MediaConstraints { public class PushMediaConstraints extends MediaConstraints {
private static final int MAX_IMAGE_DIMEN_LOWMEM = 768; private static final int MAX_IMAGE_DIMEN_LOWMEM = 768;
private static final int MAX_IMAGE_DIMEN = 1280; private static final int MAX_IMAGE_DIMEN = 2048;
private static final int KB = 1024; private static final int KB = 1024;
private static final int MB = 1024 * KB; private static final int MB = 1024 * KB;
@ -22,7 +22,7 @@ public class PushMediaConstraints extends MediaConstraints {
@Override @Override
public int getImageMaxSize() { public int getImageMaxSize() {
return 420 * KB; return 4 * MB;
} }
@Override @Override