diff --git a/app/src/main/java/me/impy/aegis/ui/PreferencesFragment.java b/app/src/main/java/me/impy/aegis/ui/PreferencesFragment.java index cbd9138b..8640e62d 100644 --- a/app/src/main/java/me/impy/aegis/ui/PreferencesFragment.java +++ b/app/src/main/java/me/impy/aegis/ui/PreferencesFragment.java @@ -424,6 +424,10 @@ public class PreferencesFragment extends PreferenceFragmentCompat { } private void onGroupManagerResult(int resultCode, Intent data) { + if (resultCode != Activity.RESULT_OK) { + return; + } + HashSet groups = new HashSet<>(data.getStringArrayListExtra("groups")); for (DatabaseEntry entry : _db.getEntries()) {