23 lines
477 B
Java
23 lines
477 B
Java
package nodomain.freeyourgadget.gadgetbridge.service.btle.actions;
|
|
|
|
import android.bluetooth.BluetoothGatt;
|
|
|
|
public class WaitAction extends PlainAction {
|
|
|
|
private final int mMillis;
|
|
|
|
public WaitAction(int millis) {
|
|
mMillis = millis;
|
|
}
|
|
|
|
@Override
|
|
public boolean run(BluetoothGatt gatt) {
|
|
try {
|
|
Thread.sleep(mMillis);
|
|
return true;
|
|
} catch (InterruptedException e) {
|
|
return false;
|
|
}
|
|
}
|
|
}
|