mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-06-02 19:36:14 +02:00
23 lines
454 B
Java
23 lines
454 B
Java
package nodomain.freeyourgadget.gadgetbridge.btle;
|
|
|
|
import android.bluetooth.BluetoothGatt;
|
|
|
|
public class WaitAction extends BtLEAction {
|
|
|
|
private 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;
|
|
}
|
|
}
|
|
}
|