1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-02-25 07:01:50 -05:00

readable thread-name for debugging

javadoc
This commit is contained in:
Marcus Wolschon 2010-12-06 09:25:23 +00:00
parent 9f7b447181
commit f5420ac528

View File

@ -180,6 +180,10 @@ public class MessagingController implements Runnable
private MemorizingListener memorizingListener = new MemorizingListener(); private MemorizingListener memorizingListener = new MemorizingListener();
private boolean mBusy; private boolean mBusy;
/**
* {@link K9}
*/
private Application mApplication; private Application mApplication;
// Key is accountUuid:folderName:messageUid , value is unimportant // Key is accountUuid:folderName:messageUid , value is unimportant
@ -233,10 +237,14 @@ public class MessagingController implements Runnable
return false; return false;
} }
/**
* @param application {@link K9}
*/
private MessagingController(Application application) private MessagingController(Application application)
{ {
mApplication = application; mApplication = application;
mThread = new Thread(this); mThread = new Thread(this);
mThread.setName("MessagingController");
mThread.start(); mThread.start();
if (memorizingListener != null) if (memorizingListener != null)
{ {
@ -247,7 +255,7 @@ public class MessagingController implements Runnable
/** /**
* Gets or creates the singleton instance of MessagingController. Application is used to * Gets or creates the singleton instance of MessagingController. Application is used to
* provide a Context to classes that need it. * provide a Context to classes that need it.
* @param application * @param application {@link K9}
* @return * @return
*/ */
public synchronized static MessagingController getInstance(Application application) public synchronized static MessagingController getInstance(Application application)