session-android/src/org/thoughtcrime/securesms/profiles/ProfileMediaConstraints.java

44 lines
777 B
Java
Raw Normal View History

2017-08-08 23:37:15 +00:00
package org.thoughtcrime.securesms.profiles;
import android.content.Context;
import org.thoughtcrime.securesms.mms.MediaConstraints;
public class ProfileMediaConstraints extends MediaConstraints {
@Override
public int getImageMaxWidth(Context context) {
return 640;
}
@Override
public int getImageMaxHeight(Context context) {
return 640;
}
@Override
public int getImageMaxSize(Context context) {
return 5 * 1024 * 1024;
}
@Override
public int getGifMaxSize(Context context) {
return 0;
}
@Override
public int getVideoMaxSize(Context context) {
return 0;
}
@Override
public int getAudioMaxSize(Context context) {
return 0;
}
@Override
public int getDocumentMaxSize(Context context) {
return 0;
}
}