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" exclude module: "commons-logging"
} }
def canonicalVersionCode = 402 def canonicalVersionCode = 403
def canonicalVersionName = "1.22.0" def canonicalVersionName = "1.22.1"
def postFixSize = 10 def postFixSize = 10
def abiPostFix = ['armeabi-v7a' : 1, def abiPostFix = ['armeabi-v7a' : 1,

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

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

Loading…
Cancel
Save