aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-09-07 15:11:40 +0200
committeriNPUTmice <daniel@gultsch.de>2014-09-07 15:11:40 +0200
commit27ad80afc21e4d88daaefee52fa1cfaea69078ab (patch)
tree0d6d9ec9307bfddc5622bda0bc1f10a27775685f /src/eu/siacs
parent04665b59c8b96341ac050399aaf0654e2e4e3132 (diff)
trying to avoid rejectedexection
Diffstat (limited to '')
-rw-r--r--src/eu/siacs/conversations/utils/PhoneHelper.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/utils/PhoneHelper.java b/src/eu/siacs/conversations/utils/PhoneHelper.java
index 975fa219..25cff099 100644
--- a/src/eu/siacs/conversations/utils/PhoneHelper.java
+++ b/src/eu/siacs/conversations/utils/PhoneHelper.java
@@ -2,6 +2,7 @@ package eu.siacs.conversations.utils;
import java.util.ArrayList;
import java.util.List;
+import java.util.concurrent.RejectedExecutionException;
import android.content.Context;
import android.content.CursorLoader;
@@ -67,7 +68,13 @@ public class PhoneHelper {
}
}
});
- mCursorLoader.startLoading();
+ try {
+ mCursorLoader.startLoading();
+ } catch (RejectedExecutionException e) {
+ if (listener != null) {
+ listener.onPhoneContactsLoaded(phoneContacts);
+ }
+ }
}
public static Uri getSefliUri(Context context) {