v2.3.1: improved vibration checkbox slightly
This commit is contained in:
+6
-1
@@ -637,10 +637,15 @@ public class WndSettings extends WndTabbed {
|
|||||||
protected void onClick() {
|
protected void onClick() {
|
||||||
super.onClick();
|
super.onClick();
|
||||||
SPDSettings.vibration(checked());
|
SPDSettings.vibration(checked());
|
||||||
|
if (checked()){
|
||||||
|
Game.vibrate(250);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
chkVibrate.checked(SPDSettings.vibration());
|
|
||||||
chkVibrate.enable(Game.platform.supportsVibration());
|
chkVibrate.enable(Game.platform.supportsVibration());
|
||||||
|
if (chkVibrate.active) {
|
||||||
|
chkVibrate.checked(SPDSettings.vibration());
|
||||||
|
}
|
||||||
add(chkVibrate);
|
add(chkVibrate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user