mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-04 15:35:19 +00:00
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;
|
||
|
}
|
||
|
}
|