diff --git a/app/src/main/java/org/linphone/core/CorePreferences.kt b/app/src/main/java/org/linphone/core/CorePreferences.kt
index 39e97252c..363f97c6a 100644
--- a/app/src/main/java/org/linphone/core/CorePreferences.kt
+++ b/app/src/main/java/org/linphone/core/CorePreferences.kt
@@ -109,16 +109,6 @@ class CorePreferences @UiThread constructor(private val context: Context) {
config.setBool("app", "show_confirmation_dialog_zrtp_trust_call", value)
}
- // Conversation settings
-
- @get:WorkerThread @set:WorkerThread
- var exportMediaToNativeGallery: Boolean // TODO: use it!
- // Keep old name for backward compatibility
- get() = config.getBool("app", "make_downloaded_images_public_in_gallery", true)
- set(value) {
- config.setBool("app", "make_downloaded_images_public_in_gallery", value)
- }
-
/* Voice Recordings */
@get:WorkerThread @set:WorkerThread
diff --git a/app/src/main/java/org/linphone/ui/main/settings/viewmodel/SettingsViewModel.kt b/app/src/main/java/org/linphone/ui/main/settings/viewmodel/SettingsViewModel.kt
index a87cae78d..e448ed0c0 100644
--- a/app/src/main/java/org/linphone/ui/main/settings/viewmodel/SettingsViewModel.kt
+++ b/app/src/main/java/org/linphone/ui/main/settings/viewmodel/SettingsViewModel.kt
@@ -239,7 +239,6 @@ class SettingsViewModel @UiThread constructor() : GenericViewModel() {
useWifiOnly.postValue(core.isWifiOnlyEnabled)
autoDownloadEnabled.postValue(core.maxSizeForAutoDownloadIncomingFiles == 0)
- exportMediaEnabled.postValue(corePreferences.exportMediaToNativeGallery)
defaultLayout.postValue(core.defaultConferenceLayout.toInt())
@@ -370,15 +369,6 @@ class SettingsViewModel @UiThread constructor() : GenericViewModel() {
}
}
- @UiThread
- fun toggleExportMedia() {
- val newValue = exportMediaEnabled.value == false
- coreContext.postOnCoreThread {
- corePreferences.exportMediaToNativeGallery = newValue
- exportMediaEnabled.postValue(newValue)
- }
- }
-
@UiThread
fun toggleContactsExpand() {
expandContacts.value = expandContacts.value == false
diff --git a/app/src/main/res/layout/settings_chat.xml b/app/src/main/res/layout/settings_chat.xml
index a32813ceb..9f9e64559 100644
--- a/app/src/main/res/layout/settings_chat.xml
+++ b/app/src/main/res/layout/settings_chat.xml
@@ -44,48 +44,6 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml
index af2e43a07..a088a6df6 100644
--- a/app/src/main/res/values-fr/strings.xml
+++ b/app/src/main/res/values-fr/strings.xml
@@ -227,8 +227,6 @@
Démarrer l\'enregistrement des appels automatiquement
Conversations
Télécharger automatiquement les fichiers
- Exporter les médias dans la gallerie
- Les médias des messages éphémères ne seront jamais exportés
Contacts
Ajouter un serveur LDAP
Editer le serveur LDAP
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index f67ef3d6f..689a6684c 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -262,8 +262,6 @@
Automatically start recording calls
Conversations
Auto-download files
- Export media in native gallery
- Media from ephemeral messages will never be exported
Contacts
Add LDAP server
Edit LDAP server