Commit f96319b6 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Don't only save the user selection when the size is not equal

parent 72473f79
...@@ -497,10 +497,8 @@ class SettingsFragment : PreferenceFragmentCompat() { ...@@ -497,10 +497,8 @@ class SettingsFragment : PreferenceFragmentCompat() {
blackList = requireContext().getPreferences().isBypassBlacklist blackList = requireContext().getPreferences().isBypassBlacklist
) { selected, isBlacklist -> ) { selected, isBlacklist ->
requireContext().getPreferences().isBypassBlacklist = isBlacklist requireContext().getPreferences().isBypassBlacklist = isBlacklist
if (selected.size != requireContext().getPreferences().userBypassPackages.size) { log("Updated the list of user bypass packages to $selected")
log("Updated the list of user bypass packages to $selected") requireContext().getPreferences().userBypassPackages = selected
requireContext().getPreferences().userBypassPackages = selected
}
}.createDialog() }.createDialog()
dialog.setTitle(R.string.title_excluded_apps) dialog.setTitle(R.string.title_excluded_apps)
dialog.show() dialog.show()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment