Prevent crash

This commit is contained in:
M66B 2019-07-16 12:01:57 +02:00
parent ceed8f0b03
commit 62059347f6
1 changed files with 10 additions and 2 deletions

View File

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