MCPcopy Create free account
hub / github.com/M66B/FairEmail / onChange

Method onChange

app/src/main/java/eu/faircode/email/ContactInfo.java:1034–1047  ·  view source on GitHub ↗
(boolean selfChange, Uri uri)

Source from the content-addressed store, hash-verified

1032 if (Helper.hasPermission(context, Manifest.permission.READ_CONTACTS)) {
1033 ContentObserver observer = new ContentObserver(ApplicationEx.getMainHandler()) {
1034 @Override
1035 public void onChange(boolean selfChange, Uri uri) {
1036 EntityLog.log(context, EntityLog.Type.Notification, "Contact changed uri=" + uri);
1037 Helper.getSerialExecutor().submit(new Runnable() {
1038 @Override
1039 public void run() {
1040 try {
1041 emailLookup = getEmailLookup(context);
1042 } catch (Throwable ex) {
1043 Log.e(ex);
1044 }
1045 }
1046 });
1047 }
1048 };
1049
1050 Helper.getSerialExecutor().submit(new Runnable() {

Callers

nothing calls this directly

Calls 2

logMethod · 0.95
getSerialExecutorMethod · 0.95

Tested by

no test coverage detected