mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Merge branch 'dev' into strings-squashed
This commit is contained in:
commit
b908a54a44
@ -13,8 +13,8 @@ configurations.forEach {
|
||||
it.exclude module: "commons-logging"
|
||||
}
|
||||
|
||||
def canonicalVersionCode = 379
|
||||
def canonicalVersionName = "1.19.1"
|
||||
def canonicalVersionCode = 380
|
||||
def canonicalVersionName = "1.19.2"
|
||||
|
||||
def postFixSize = 10
|
||||
def abiPostFix = ['armeabi-v7a' : 1,
|
||||
|
@ -73,7 +73,12 @@ class SaveAttachmentTask @JvmOverloads constructor(context: Context, count: Int
|
||||
fun saveAttachment(context: Context, attachment: Attachment): String? {
|
||||
val contentType = checkNotNull(MediaUtil.getCorrectedMimeType(attachment.contentType))
|
||||
var fileName = attachment.fileName
|
||||
|
||||
// Added for SES-2624 to prevent Android API 28 devices and lower from crashing because
|
||||
// for unknown reasons it provides us with an empty filename when saving files.
|
||||
// TODO: Further investigation into root cause and fix!
|
||||
if (fileName.isNullOrEmpty()) fileName = generateOutputFileName(contentType, attachment.date)
|
||||
|
||||
fileName = sanitizeOutputFileName(fileName)
|
||||
val outputUri: Uri = getMediaStoreContentUriForType(contentType)
|
||||
val mediaUri = createOutputUri(context, outputUri, contentType, fileName)
|
||||
|
@ -9,7 +9,6 @@
|
||||
<dimen name="medium_font_size">15sp</dimen>
|
||||
<dimen name="large_font_size">20sp</dimen>
|
||||
<dimen name="very_large_font_size">24sp</dimen>
|
||||
<dimen name="massive_font_size">50sp</dimen>
|
||||
|
||||
<!-- Session -->
|
||||
|
||||
|
@ -6,10 +6,6 @@
|
||||
<dimen name="album_3_total_height">168dp</dimen>
|
||||
<dimen name="album_3_cell_width_big">167dp</dimen>
|
||||
<dimen name="album_3_cell_size_small">83dp</dimen>
|
||||
<dimen name="album_4_total_height">252dp</dimen>
|
||||
<dimen name="album_4_cell_size">125dp</dimen>
|
||||
<dimen name="album_5_total_height">210dp</dimen>
|
||||
<dimen name="album_5_cell_size_big">125dp</dimen>
|
||||
<dimen name="album_5_cell_size_small">83dp</dimen>
|
||||
<dimen name="max_text_width">240dp</dimen>
|
||||
</resources>
|
@ -14,10 +14,6 @@
|
||||
<dimen name="album_3_total_height">200dp</dimen>
|
||||
<dimen name="album_3_cell_width_big">199dp</dimen>
|
||||
<dimen name="album_3_cell_size_small">99dp</dimen>
|
||||
<dimen name="album_4_total_height">300dp</dimen>
|
||||
<dimen name="album_4_cell_size">149dp</dimen>
|
||||
<dimen name="album_5_total_height">250dp</dimen>
|
||||
<dimen name="album_5_cell_size_big">149dp</dimen>
|
||||
<dimen name="album_5_cell_size_small">99dp</dimen>
|
||||
<dimen name="max_text_width">300dp</dimen>
|
||||
</resources>
|
@ -1,5 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="media_bubble_max_width">350dp</dimen>
|
||||
<dimen name="media_bubble_max_height">300dp</dimen>
|
||||
|
||||
</resources>
|
Loading…
Reference in New Issue
Block a user