Log the stack trace if we do a DB operation on the UI thread

Change-Id: I0b9e7fff502ef5ee0f8b373cb3352958b8de08c2
This commit is contained in:
Martin Hibdon 2014-01-03 09:07:01 -08:00
parent 00219e9fb9
commit ab29555b72
1 changed files with 1 additions and 2 deletions

View File

@ -175,8 +175,7 @@ public abstract class EmailContent {
private static void warnIfUiThread() {
if (Looper.getMainLooper().getThread() == Thread.currentThread()) {
LogUtils.w(Logging.LOG_TAG, "Method called on the UI thread",
new Throwable());
LogUtils.w(Logging.LOG_TAG, new Throwable(), "Method called on the UI thread");
}
}