Fix for taskedit-page crashing on Android OS 1.6 and older

pull/14/head
Arne Jans 15 years ago
parent 800519a5ae
commit 5bf9f8ed37

@ -75,9 +75,13 @@ public class ContactsAutoComplete extends AutoCompleteTextView {
// --- cursor stuff
private void setUpContacts() {
try {
adapter = new ContactListAdapter((Activity) getContext(), null);
adapter.setCompleteSharedTags(completeTags);
setAdapter(adapter);
} catch (VerifyError ve) {
adapter = null;
}
}
// --- getters and setters
@ -92,6 +96,7 @@ public class ContactsAutoComplete extends AutoCompleteTextView {
public void setCompleteSharedTags(boolean value) {
completeTags = value;
if (adapter != null)
adapter.setCompleteSharedTags(value);
}

Loading…
Cancel
Save