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() {
blackList = requireContext().getPreferences().isBypassBlacklist
) { selected, isBlacklist ->
requireContext().getPreferences().isBypassBlacklist = isBlacklist
if (selected.size != requireContext().getPreferences().userBypassPackages.size) {
log("Updated the list of user bypass packages to $selected")
requireContext().getPreferences().userBypassPackages = selected
}
}.createDialog()
dialog.setTitle(R.string.title_excluded_apps)
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