From 8c9c9c46d6a530ddd29547ad995d2bd328e0c04e Mon Sep 17 00:00:00 2001 From: Shawn Date: Tue, 25 Oct 2022 00:03:51 -0600 Subject: [PATCH] Add control flag for haptic logs --- lib/ui/common/utils/app_haptics.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ui/common/utils/app_haptics.dart b/lib/ui/common/utils/app_haptics.dart index f09fc667..84bbbfdc 100644 --- a/lib/ui/common/utils/app_haptics.dart +++ b/lib/ui/common/utils/app_haptics.dart @@ -5,8 +5,9 @@ import 'package:wonders/common_libs.dart'; class AppHaptics { // note: system sounds are pretty buggy on Android: https://github.com/flutter/flutter/issues/57531 - static bool debugSound = kDebugMode; - static bool debugLog = kDebugMode; + static bool debugSound = kDebugMode && enableDebugLogs; + static bool debugLog = kDebugMode && enableDebugLogs; + static bool enableDebugLogs = false; static void buttonPress() { // Android/Fuchsia expect haptics on all button presses, iOS does not.