mirror of https://github.com/M66B/FairEmail.git
Compressed
This commit is contained in:
parent
1ac876fa1a
commit
3f2a62f8af
|
@ -28,6 +28,7 @@ import android.net.Uri;
|
|||
import android.os.Bundle;
|
||||
import android.text.SpannableStringBuilder;
|
||||
import android.text.Spanned;
|
||||
import android.text.TextUtils;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuInflater;
|
||||
|
@ -1177,7 +1178,8 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
|||
}
|
||||
});
|
||||
|
||||
tvUnzipHint.setText(getString(R.string.title_advanced_unzip_hint,
|
||||
tvUnzipHint.setText(getString(R.string.compressed,
|
||||
TextUtils.join(",", MessageHelper.UNZIP_FORMATS),
|
||||
Integer.toString(MessageHelper.MAX_UNZIP_COUNT),
|
||||
Helper.humanReadableByteCount(MessageHelper.MAX_UNZIP_SIZE)));
|
||||
|
||||
|
|
|
@ -149,6 +149,10 @@ public class MessageHelper {
|
|||
static final int MAX_UNZIP_COUNT = 20;
|
||||
static final long MAX_UNZIP_SIZE = 1000 * 1000 * 1000L;
|
||||
|
||||
static final List<String> UNZIP_FORMATS = Collections.unmodifiableList(Arrays.asList(
|
||||
"ZIP"
|
||||
));
|
||||
|
||||
static final List<String> RECEIVED_WORDS = Collections.unmodifiableList(Arrays.asList(
|
||||
"from", "by", "via", "with", "id", "for"
|
||||
));
|
||||
|
|
|
@ -1766,7 +1766,7 @@
|
|||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="48dp"
|
||||
android:text="@string/title_advanced_unzip_hint"
|
||||
android:text="@string/compressed"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
android:textStyle="italic"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
@ -508,7 +508,7 @@
|
|||
<string name="title_advanced_preview_italic">Show message preview in italics</string>
|
||||
<string name="title_advanced_preview_lines">Number of preview lines</string>
|
||||
<string name="title_advanced_addresses">Expand address details by default</string>
|
||||
<string name="title_advanced_unzip">Show contents of zipped attachments</string>
|
||||
<string name="title_advanced_unzip">Show contents of compressed attachments</string>
|
||||
<string name="title_advanced_attachments_alt">Show attachments after the message text</string>
|
||||
<string name="title_advanced_thumbnails">Show image thumbnails after the message text</string>
|
||||
<string name="title_advanced_message_text_zoom2">Default message text zoom: %1$s %%</string>
|
||||
|
@ -808,7 +808,7 @@
|
|||
<string name="title_advanced_monospaced_pre_hint">Plain text only messages will be considered as preformatted</string>
|
||||
<string name="title_advanced_placeholders_hint">This applies to reformatted messages only</string>
|
||||
<string name="title_advanced_inline_hint">Inline images are images included in the message</string>
|
||||
<string name="title_advanced_unzip_hint">The contents of zip files with more than %1$s files or with files larger than %2$s will not be shown</string>
|
||||
<string name="compressed">The contents of compressed files (%1$s) with more than %2$s files or with files larger than %3$s will not be shown</string>
|
||||
<string name="title_advanced_parse_classes_hint">This will more accurately display messages, but possibly with a delay</string>
|
||||
|
||||
<string name="title_advanced_language_detection_hint">Language detection support depends on the device manufacturer</string>
|
||||
|
|
Loading…
Reference in New Issue