trying to avoid rejectedexection
This commit is contained in:
parent
04665b59c8
commit
27ad80afc2
|
@ -2,6 +2,7 @@ package eu.siacs.conversations.utils;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.concurrent.RejectedExecutionException;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.CursorLoader;
|
import android.content.CursorLoader;
|
||||||
|
@ -67,7 +68,13 @@ public class PhoneHelper {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
try {
|
||||||
mCursorLoader.startLoading();
|
mCursorLoader.startLoading();
|
||||||
|
} catch (RejectedExecutionException e) {
|
||||||
|
if (listener != null) {
|
||||||
|
listener.onPhoneContactsLoaded(phoneContacts);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Uri getSefliUri(Context context) {
|
public static Uri getSefliUri(Context context) {
|
||||||
|
|
Loading…
Reference in New Issue