mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-04 07:25:16 +00:00
1893047a78
// FREEBIE
44 lines
777 B
Java
44 lines
777 B
Java
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;
|
|
}
|
|
}
|