diff --git a/app/src/main/java/org/linphone/activities/main/settings/viewmodels/ChatSettingsViewModel.kt b/app/src/main/java/org/linphone/activities/main/settings/viewmodels/ChatSettingsViewModel.kt index f6ff2d28b..7848f08a4 100644 --- a/app/src/main/java/org/linphone/activities/main/settings/viewmodels/ChatSettingsViewModel.kt +++ b/app/src/main/java/org/linphone/activities/main/settings/viewmodels/ChatSettingsViewModel.kt @@ -88,6 +88,14 @@ class ChatSettingsViewModel : GenericSettingsViewModel() { } val hideNotificationContent = MutableLiveData() + val useInAppFileViewerListener = object : SettingListenerStub() { + override fun onBoolValueChanged(newValue: Boolean) { + prefs.useInAppFileViewerForNonEncryptedFiles = newValue + useInAppFileViewer.value = newValue + } + } + val useInAppFileViewer = MutableLiveData() + val launcherShortcutsListener = object : SettingListenerStub() { override fun onBoolValueChanged(newValue: Boolean) { prefs.chatRoomShortcuts = newValue @@ -122,7 +130,8 @@ class ChatSettingsViewModel : GenericSettingsViewModel() { init { markAsReadNotifDismissal.value = prefs.markAsReadUponChatMessageNotificationDismissal - downloadedMediaPublic.value = prefs.makePublicMediaFilesDownloaded + downloadedMediaPublic.value = prefs.makePublicMediaFilesDownloaded && !prefs.vfsEnabled + useInAppFileViewer.value = prefs.useInAppFileViewerForNonEncryptedFiles || prefs.vfsEnabled hideNotificationContent.value = prefs.hideChatMessageContentInNotification initAutoDownloadList() launcherShortcuts.value = prefs.chatRoomShortcuts diff --git a/app/src/main/res/layout/settings_chat_fragment.xml b/app/src/main/res/layout/settings_chat_fragment.xml index ad591c875..cc28d67db 100644 --- a/app/src/main/res/layout/settings_chat_fragment.xml +++ b/app/src/main/res/layout/settings_chat_fragment.xml @@ -98,6 +98,14 @@ linphone:listener="@{viewModel.downloadedMediaPublicListener}" linphone:checked="@={viewModel.downloadedMediaPublic}"/> + + Ouvrir le fichier dans une application tierce Aucune application n\'est disponible pour ouvrir ce type de fichier Impossible d\'ouvrir un fichier chiffré dans la bulle de conversation + Chiffrer tous les fichiers + Attention, ne pourra pas être désactivé ! + Ouvrir les fichiers dans l\'application + Vous pourrez toujours les exporter dans une appli tierce \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index dac515aba..8196f3fd9 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -434,6 +434,8 @@ Hide chat rooms from removed proxy configs If you are missing chat rooms, try to uncheck this setting Android notification settings + Always open files inside this app + You\'ll still be able to export them in third-party apps Use WiFi only