Merge pull request #1074 from session-foundation/release/1.22.1

Release/1.22.1
pull/1713/head
SessionHero01 6 months ago committed by GitHub
commit 2ffecfe841
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -15,8 +15,8 @@ configurations.configureEach {
exclude module: "commons-logging"
}
def canonicalVersionCode = 402
def canonicalVersionName = "1.22.0"
def canonicalVersionCode = 403
def canonicalVersionName = "1.22.1"
def postFixSize = 10
def abiPostFix = ['armeabi-v7a' : 1,

@ -210,7 +210,7 @@ class ApplicationContext : Application(), DefaultLifecycleObserver,
.setWorkerFactory(workerFactory)
.build()
override fun getSystemService(name: String): Any {
override fun getSystemService(name: String): Any? {
if (MessagingModuleConfiguration.MESSAGING_MODULE_SERVICE == name) {
return messagingModuleConfiguration!!
}

@ -429,9 +429,12 @@ public class MediaPreviewActivity extends ScreenLockActionBarActivity implements
String mediaFilename = "";
if (mediaItem.attachment != null) {
mediaFilename = mediaItem.attachment.getFilename();
} else {
}
if(mediaFilename == null || mediaFilename.isEmpty()){
mediaFilename = FilenameUtils.getFilenameFromUri(MediaPreviewActivity.this, mediaItem.uri, mediaItem.mimeType);
}
final String outputFilename = mediaFilename; // We need a `final` value for the saveTask, below
Log.i(TAG, "About to save media as: " + outputFilename);

Loading…
Cancel
Save