Fixed nomedia creation menu

This commit is contained in:
tom5079
2020-06-21 15:32:55 +09:00
parent 67f37d3188
commit 4db0022d6a
5 changed files with 8 additions and 6 deletions

View File

@@ -157,6 +157,9 @@ class SettingsFragment :
ProxyDialog(requireContext())
.show()
}
"nomedia" -> {
File(getDownloadDirectory(context), ".nomedia").createNewFile()
}
"backup" -> {
File(ContextCompat.getDataDir(requireContext()), "favorites.json").copyTo(
File(getDownloadDirectory(requireContext()), "favorites.json"),
@@ -322,6 +325,9 @@ class SettingsFragment :
"dark_mode" -> {
onPreferenceChangeListener = this@SettingsFragment
}
"nomedia" -> {
onPreferenceClickListener = this@SettingsFragment
}
"backup" -> {
onPreferenceClickListener = this@SettingsFragment
}