diff --git a/res/values/strings.xml b/res/values/strings.xml
index 816cb3428c..4264e40d7e 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -89,8 +89,8 @@
Select contact info
Compose message
Sorry, there was an error setting your attachment.
- Sorry, the selected video exceeds message size restrictions.
- Sorry, the selected audio exceeds message size restrictions.
+ Sorry, the selected video exceeds message size restrictions (%1$skB).
+ Sorry, the selected audio exceeds message size restrictions (%1$skB).
Recipient is not a valid SMS or email address!
Message is empty!
Group conversation recipients
diff --git a/src/org/thoughtcrime/securesms/ConversationActivity.java b/src/org/thoughtcrime/securesms/ConversationActivity.java
index a97af438a6..29695ad524 100644
--- a/src/org/thoughtcrime/securesms/ConversationActivity.java
+++ b/src/org/thoughtcrime/securesms/ConversationActivity.java
@@ -827,7 +827,8 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
Log.w("ComposeMessageActivity", e);
} catch (MediaTooLargeException e) {
attachmentManager.clear();
- Toast.makeText(this, R.string.ConversationActivity_sorry_the_selected_video_exceeds_message_size_restrictions,
+ Toast.makeText(this, getString(R.string.ConversationActivity_sorry_the_selected_video_exceeds_message_size_restrictions,
+ (Slide.MAX_MESSAGE_SIZE/1024)),
Toast.LENGTH_LONG).show();
Log.w("ComposeMessageActivity", e);
}
@@ -843,7 +844,8 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
Log.w("ComposeMessageActivity", e);
} catch (MediaTooLargeException e) {
attachmentManager.clear();
- Toast.makeText(this, R.string.ConversationActivity_sorry_the_selected_audio_exceeds_message_size_restrictions,
+ Toast.makeText(this, getString(R.string.ConversationActivity_sorry_the_selected_audio_exceeds_message_size_restrictions,
+ (Slide.MAX_MESSAGE_SIZE/1024)),
Toast.LENGTH_LONG).show();
Log.w("ComposeMessageActivity", e);
}
diff --git a/src/org/thoughtcrime/securesms/mms/Slide.java b/src/org/thoughtcrime/securesms/mms/Slide.java
index 524083e951..d2d8d98016 100644
--- a/src/org/thoughtcrime/securesms/mms/Slide.java
+++ b/src/org/thoughtcrime/securesms/mms/Slide.java
@@ -39,7 +39,7 @@ import ws.com.google.android.mms.pdu.PduPart;
public abstract class Slide {
- protected static final int MAX_MESSAGE_SIZE = 280 * 1024;
+ public static final int MAX_MESSAGE_SIZE = 280 * 1024;
protected final PduPart part;
protected final Context context;