change class name

This commit is contained in:
Giemsa 2016-10-25 01:34:29 +09:00 committed by Samuel Carlsson
parent abbd2ad228
commit 706c64d36f
2 changed files with 4 additions and 4 deletions

View File

@ -3,9 +3,9 @@ package se.vidstige.jadb;
import java.util.List;
import java.io.IOException;
public class DeviceDetectionHandler {
public class AsyncActionHandler {
private Transport transport;
public DeviceDetectionHandler(Transport transport) {
public AsyncActionHandler(Transport transport) {
this.transport = transport;
};

View File

@ -43,7 +43,7 @@ public class JadbConnection implements ITransportFactory {
return parseDevices(body);
}
public DeviceDetectionHandler watchDevices(final DeviceDetectionListener listener) throws IOException, JadbException {
public AsyncActionHandler watchDevices(final DeviceDetectionListener listener) throws IOException, JadbException {
final Transport transport = createTransport();
new Thread(new Runnable() {
@Override
@ -65,7 +65,7 @@ public class JadbConnection implements ITransportFactory {
}
}).start();
return new DeviceDetectionHandler(transport);
return new AsyncActionHandler(transport);
}
private List<JadbDevice> parseDevices(String body) {