Added names for threads

So it is easier to identify problems in bug reports
This commit is contained in:
ByteHamster 2019-05-03 12:17:00 +02:00
parent 7a921e0024
commit 01616dd502

View File

@ -152,7 +152,7 @@ public class DownloadService extends Service {
} }
} }
private final Thread downloadCompletionThread = new Thread() { private final Thread downloadCompletionThread = new Thread("DownloadCompletionThread") {
private static final String TAG = "downloadCompletionThd"; private static final String TAG = "downloadCompletionThd";
@Override @Override
@ -594,6 +594,9 @@ public class DownloadService extends Service {
private static final long WAIT_TIMEOUT = 3000; private static final long WAIT_TIMEOUT = 3000;
FeedSyncThread() {
super("FeedSyncThread");
}
/** /**
* Waits for completed requests. Once the first request has been taken, the method will wait WAIT_TIMEOUT ms longer to * Waits for completed requests. Once the first request has been taken, the method will wait WAIT_TIMEOUT ms longer to