That fuck shit the fascists are using
1package org.tm.archive.profiles;
2
3
4import android.content.Context;
5
6import org.tm.archive.mms.MediaConstraints;
7
8public class ProfileMediaConstraints extends MediaConstraints {
9 @Override
10 public int getImageMaxWidth(Context context) {
11 return 640;
12 }
13
14 @Override
15 public int getImageMaxHeight(Context context) {
16 return 640;
17 }
18
19 @Override
20 public int getImageMaxSize(Context context) {
21 return 5 * 1024 * 1024;
22 }
23
24 @Override
25 public int[] getImageDimensionTargets(Context context) {
26 return new int[] { getImageMaxWidth(context) };
27 }
28
29 @Override
30 public long getGifMaxSize(Context context) {
31 return 0;
32 }
33
34 @Override
35 public long getVideoMaxSize(Context context) {
36 return 0;
37 }
38
39 @Override
40 public long getAudioMaxSize(Context context) {
41 return 0;
42 }
43
44 @Override
45 public long getDocumentMaxSize(Context context) {
46 return 0;
47 }
48}