mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 11:38:51 +01:00
Merge pull request #241 from gavine99/save_attachments_235
fix bug that disabled download/view of mms attachments
This commit is contained in:
@@ -181,9 +181,9 @@ class MessageRepositoryImpl @Inject constructor(
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
||||
values.put(MediaStore.MediaColumns.IS_PENDING, 1)
|
||||
values.put(MediaStore.MediaColumns.RELATIVE_PATH, when {
|
||||
part.isImage() -> "${Environment.DIRECTORY_PICTURES}/QKSMS"
|
||||
part.isVideo() -> "${Environment.DIRECTORY_MOVIES}/QKSMS"
|
||||
else -> "${Environment.DIRECTORY_DOWNLOADS}/QKSMS"
|
||||
part.isImage() -> "${Environment.DIRECTORY_PICTURES}/QUIK"
|
||||
part.isVideo() -> "${Environment.DIRECTORY_MOVIES}/QUIK"
|
||||
else -> "${Environment.DIRECTORY_DOWNLOADS}/QUIK"
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
|
||||
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
|
||||
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||
|
||||
<application
|
||||
android:name=".common.QKApplication"
|
||||
|
||||
Reference in New Issue
Block a user