From ceb03de240add6ece4dfc3842533b6eb771dad0b Mon Sep 17 00:00:00 2001 From: Alexander Bakker Date: Tue, 18 Dec 2018 23:18:11 +0100 Subject: [PATCH] Check the result code of GroupManagerActivity --- app/src/main/java/me/impy/aegis/ui/PreferencesFragment.java | 4 ++++ 1 file changed, 4 insertions(+) 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()) {