@@ -781,6 +781,7 @@ class SettingsActivity :
781781 binding.run {
782782 listOf (
783783 settingsShowEcosystemSwitch,
784+ settingsShowMediaFilenamesSwitch,
784785 settingsShowNotificationWarningSwitch,
785786 settingsScreenLockSwitch,
786787 settingsScreenSecuritySwitch,
@@ -978,6 +979,7 @@ class SettingsActivity :
978979
979980 private fun setupCheckables (isOnline : Boolean ) {
980981 setupShowEcosystemCheckable()
982+ setupShowMediaFilenamesCheckable()
981983
982984 binding.settingsShowNotificationWarningSwitch.isChecked =
983985 appPreferences.showRegularNotificationWarning
@@ -1052,6 +1054,15 @@ class SettingsActivity :
10521054 }
10531055 }
10541056
1057+ private fun setupShowMediaFilenamesCheckable () {
1058+ binding.settingsShowMediaFilenamesSwitch.isChecked = appPreferences.showMediaFilenames
1059+ binding.settingsShowMediaFilenames.setOnClickListener {
1060+ val isChecked = binding.settingsShowMediaFilenamesSwitch.isChecked
1061+ binding.settingsShowMediaFilenamesSwitch.isChecked = ! isChecked
1062+ appPreferences.setShowMediaFilenames(! isChecked)
1063+ }
1064+ }
1065+
10551066 private fun setupPhoneBookIntegrationSetting () {
10561067 binding.settingsPhoneBookIntegrationSwitch.isChecked = appPreferences.isPhoneBookIntegrationEnabled
10571068 binding.settingsPhoneBookIntegration.setOnClickListener {
0 commit comments