Skip to content

Commit 5db8a18

Browse files
Merge pull request #1073 from session-foundation/release/1.22.1
Release/1.22.1
2 parents 6021c19 + 27507b5 commit 5db8a18

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ configurations.configureEach {
1515
exclude module: "commons-logging"
1616
}
1717

18-
def canonicalVersionCode = 402
19-
def canonicalVersionName = "1.22.0"
18+
def canonicalVersionCode = 403
19+
def canonicalVersionName = "1.22.1"
2020

2121
def postFixSize = 10
2222
def abiPostFix = ['armeabi-v7a' : 1,

app/src/main/java/org/thoughtcrime/securesms/ApplicationContext.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class ApplicationContext : Application(), DefaultLifecycleObserver,
205205
@Volatile
206206
var isAppVisible: Boolean = false
207207

208-
override fun getSystemService(name: String): Any {
208+
override fun getSystemService(name: String): Any? {
209209
if (MessagingModuleConfiguration.MESSAGING_MODULE_SERVICE == name) {
210210
return messagingModuleConfiguration!!
211211
}

app/src/main/java/org/thoughtcrime/securesms/MediaPreviewActivity.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,12 @@ private void saveToDisk() {
429429
String mediaFilename = "";
430430
if (mediaItem.attachment != null) {
431431
mediaFilename = mediaItem.attachment.getFilename();
432-
} else {
432+
}
433+
434+
if(mediaFilename == null || mediaFilename.isEmpty()){
433435
mediaFilename = FilenameUtils.getFilenameFromUri(MediaPreviewActivity.this, mediaItem.uri, mediaItem.mimeType);
434436
}
437+
435438
final String outputFilename = mediaFilename; // We need a `final` value for the saveTask, below
436439
Log.i(TAG, "About to save media as: " + outputFilename);
437440

0 commit comments

Comments
 (0)