mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-27 22:38:53 +00:00
Explain size limit for large attachments in toasts.
// FREEBIE Fixes #2100 Closes #2172
This commit is contained in:
committed by
Moxie Marlinspike
parent
bbea017d5a
commit
a09e0afbd6
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user