Check the result code of GroupManagerActivity

pull/53/head
Alexander Bakker 7 years ago
parent b28691c274
commit ceb03de240

@ -424,6 +424,10 @@ public class PreferencesFragment extends PreferenceFragmentCompat {
} }
private void onGroupManagerResult(int resultCode, Intent data) { private void onGroupManagerResult(int resultCode, Intent data) {
if (resultCode != Activity.RESULT_OK) {
return;
}
HashSet<String> groups = new HashSet<>(data.getStringArrayListExtra("groups")); HashSet<String> groups = new HashSet<>(data.getStringArrayListExtra("groups"));
for (DatabaseEntry entry : _db.getEntries()) { for (DatabaseEntry entry : _db.getEntries()) {

Loading…
Cancel
Save