mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-16 19:38:34 +00:00
add mini vibration feedback when tapping pin digits
This commit is contained in:
@ -124,6 +124,9 @@ class HomeAssistantPinConfirmationDelegate extends WatchUi.BehaviorDelegate {
|
|||||||
}
|
}
|
||||||
var instance = event.getInstance();
|
var instance = event.getInstance();
|
||||||
if (instance instanceof PinDigit && event.getPreviousState() == :stateSelected) {
|
if (instance instanceof PinDigit && event.getPreviousState() == :stateSelected) {
|
||||||
|
if (Attention has :vibrate && Settings.getVibrate()) {
|
||||||
|
Attention.vibrate([new Attention.VibeProfile(25, 25)]);
|
||||||
|
}
|
||||||
var currentDigit = getTranscodedCurrentDigit();
|
var currentDigit = getTranscodedCurrentDigit();
|
||||||
if (currentDigit != null && currentDigit == instance.getDigit()) {
|
if (currentDigit != null && currentDigit == instance.getDigit()) {
|
||||||
// System.println("Pin digit " + (mCurrentIndex+1) + " matches");
|
// System.println("Pin digit " + (mCurrentIndex+1) + " matches");
|
||||||
|
Reference in New Issue
Block a user