mirror of
https://github.com/revanced/jadb.git
synced 2025-02-05 23:16:47 +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.io.IOException;
|
||||
|
||||
public class DeviceDetectionHandler {
|
||||
public class AsyncActionHandler {
|
||||
private Transport transport;
|
||||
public DeviceDetectionHandler(Transport transport) {
|
||||
public AsyncActionHandler(Transport transport) {
|
||||
this.transport = transport;
|
||||
};
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user