Log the stack trace if we do a DB operation on the UI thread
Change-Id: I0b9e7fff502ef5ee0f8b373cb3352958b8de08c2
This commit is contained in:
parent
00219e9fb9
commit
ab29555b72
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue