Prevent crash

pull/159/head
M66B 6 years ago
parent ceed8f0b03
commit 62059347f6

@ -215,11 +215,19 @@ public class ContactInfo {
@Override
public void onChange(boolean selfChange, Uri uri) {
Log.i("Contact changed uri=" + uri);
try {
emailLookup = getEmailLookup(context);
} catch (Throwable ex) {
Log.e(ex);
}
}
};
try {
emailLookup = getEmailLookup(context);
} catch (Throwable ex) {
Log.e(ex);
}
Uri uri = ContactsContract.CommonDataKinds.Email.CONTENT_URI;
Log.i("Observing uri=" + uri);

Loading…
Cancel
Save