mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-04 14:45:38 +00:00
Bump up push media max edge to 2048 and max size to 4MB
Fixes #672 // FREEBIE
This commit is contained in:
parent
23544fae8a
commit
b54a271a75
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user