Changes in ical4android and vcard4android

* don't set ORGANIZER for events without attendees
* make some lists public final instead of @Getter private
* PermissionsActivity: call refresh in onResume() instead of onCreate()
This commit is contained in:
Ricki Hirner
2016-04-13 14:14:30 +02:00
parent e1e95f0c2a
commit 0b53d77228
4 changed files with 8 additions and 4 deletions

View File

@@ -82,7 +82,7 @@ public class LocalContact extends AndroidContact implements LocalResource {
Contact groupInfo = group.getContact();
// add to CATEGORIES
contact.getCategories().add(groupInfo.displayName);
contact.categories.add(groupInfo.displayName);
} catch (FileNotFoundException|ContactsStorageException e) {
App.log.log(Level.WARNING, "Couldn't find assigned group #" + groupId + ", ignoring membership", e);
}
@@ -91,7 +91,7 @@ public class LocalContact extends AndroidContact implements LocalResource {
@Override
protected void insertGroupMemberships(BatchOperation batch) throws ContactsStorageException {
for (String category : contact.getCategories()) {
for (String category : contact.categories) {
// Is there already a category with this display name?
LocalGroup group = ((LocalAddressBook)addressBook).findGroupByTitle(category);

View File

@@ -32,7 +32,11 @@ public class PermissionsActivity extends AppCompatActivity {
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_permissions);
}
@Override
protected void onResume() {
super.onResume();
refresh();
}