commit | 3ed778ad6389c901077fee38bb77abd55dd4eba4 | [log] [tgz] |
---|---|---|
author | bigbiff bigbiff <bigbiff@teamw.in> | Tue Mar 12 19:28:31 2019 -0400 |
committer | Ethan Yonker <dees_troy@teamw.in> | Sun Mar 17 22:39:00 2019 -0500 |
tree | 57a2a9af729ca594387f71532797fb9d42bcc8cc | |
parent | 9220dbab44b3bf277c903ac0c99d09c53eec39c7 [diff] [blame] |
Vibration: allow BoardConfig to disable vibration for a device. Change-Id: Ibd2f67391ce6d7774498839829e0de9391508781
diff --git a/gui/checkbox.cpp b/gui/checkbox.cpp old mode 100644 new mode 100755 index de63cba..025a803 --- a/gui/checkbox.cpp +++ b/gui/checkbox.cpp
@@ -179,7 +179,10 @@ lastState = (lastState == 0) ? 1 : 0; DataManager::SetValue(mVarName, lastState); +#ifndef TW_NO_HAPTICS DataManager::Vibrate("tw_button_vibrate"); +#endif + } return 0; }