session-android/src/org/thoughtcrime/securesms/util/MmsCharacterCalculator.java

12 lines
315 B
Java
Raw Normal View History

package org.thoughtcrime.securesms.util;
public class MmsCharacterCalculator extends CharacterCalculator {
private static final int MAX_SIZE = 5000;
@Override
public CharacterState calculateCharacters(String messageBody) {
return new CharacterState(1, MAX_SIZE - messageBody.length(), MAX_SIZE);
}
}