mirror of
https://github.com/revanced/jadb.git
synced 2025-02-11 09:36:48 +01:00
change class name
This commit is contained in:
parent
abbd2ad228
commit
706c64d36f
@ -3,9 +3,9 @@ package se.vidstige.jadb;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
public class DeviceDetectionHandler {
|
public class AsyncActionHandler {
|
||||||
private Transport transport;
|
private Transport transport;
|
||||||
public DeviceDetectionHandler(Transport transport) {
|
public AsyncActionHandler(Transport transport) {
|
||||||
this.transport = transport;
|
this.transport = transport;
|
||||||
};
|
};
|
||||||
|
|
@ -43,7 +43,7 @@ public class JadbConnection implements ITransportFactory {
|
|||||||
return parseDevices(body);
|
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();
|
final Transport transport = createTransport();
|
||||||
new Thread(new Runnable() {
|
new Thread(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
@ -65,7 +65,7 @@ public class JadbConnection implements ITransportFactory {
|
|||||||
}
|
}
|
||||||
}).start();
|
}).start();
|
||||||
|
|
||||||
return new DeviceDetectionHandler(transport);
|
return new AsyncActionHandler(transport);
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<JadbDevice> parseDevices(String body) {
|
private List<JadbDevice> parseDevices(String body) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user