Log stack traces if apply() called off of ui thread
Change-Id: Id7858abe0ab0ad56a3a99a6be96f3559763cac40
diff --git a/src/com/android/mail/browse/ConversationCursor.java b/src/com/android/mail/browse/ConversationCursor.java
index 5522cbe..bf6d885 100644
--- a/src/com/android/mail/browse/ConversationCursor.java
+++ b/src/com/android/mail/browse/ConversationCursor.java
@@ -1085,6 +1085,10 @@
public int apply(ArrayList<ConversationOperation> ops) {
final HashMap<String, ArrayList<ContentProviderOperation>> batchMap =
new HashMap<String, ArrayList<ContentProviderOperation>>();
+ // STOPSHIP: Remove this test
+ if (offUiThread()) {
+ Log.w(TAG, "apply() called off of UI thread", new Throwable());
+ }
// Increment sequence count
sSequence++;
// Execute locally and build CPO's for underlying provider