summaryrefslogtreecommitdiffstats
path: root/gui/action.cpp
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2019-03-13 00:28:31 +0100
committerEthan Yonker <dees_troy@teamw.in>2019-03-18 04:39:00 +0100
commit3ed778ad6389c901077fee38bb77abd55dd4eba4 (patch)
tree57a2a9af729ca594387f71532797fb9d42bcc8cc /gui/action.cpp
parentfix building TWRP for devices without cache (diff)
downloadandroid_bootable_recovery-3ed778ad6389c901077fee38bb77abd55dd4eba4.tar
android_bootable_recovery-3ed778ad6389c901077fee38bb77abd55dd4eba4.tar.gz
android_bootable_recovery-3ed778ad6389c901077fee38bb77abd55dd4eba4.tar.bz2
android_bootable_recovery-3ed778ad6389c901077fee38bb77abd55dd4eba4.tar.lz
android_bootable_recovery-3ed778ad6389c901077fee38bb77abd55dd4eba4.tar.xz
android_bootable_recovery-3ed778ad6389c901077fee38bb77abd55dd4eba4.tar.zst
android_bootable_recovery-3ed778ad6389c901077fee38bb77abd55dd4eba4.zip
Diffstat (limited to 'gui/action.cpp')
-rwxr-xr-x[-rw-r--r--]gui/action.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index d708dd467..11d9580fb 100644..100755
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -516,8 +516,12 @@ void GUIAction::operation_end(const int operation_status)
blankTimer.resetTimerAndUnblank();
property_set("twrp.action_complete", "1");
time(&Stop);
+
+#ifndef TW_NO_HAPTICS
if ((int) difftime(Stop, Start) > 10)
DataManager::Vibrate("tw_action_vibrate");
+#endif
+
LOGINFO("operation_end - status=%d\n", operation_status);
}