From e4b23d9d15077bb3000817d602615cb62bd3e873 Mon Sep 17 00:00:00 2001 From: Code-Floof Date: Mon, 22 Jul 2024 01:52:22 -0400 Subject: [PATCH 1/2] Update gradle.properties --- android/gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/gradle.properties b/android/gradle.properties index 4a6579ac..249eb662 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -6,4 +6,4 @@ android.nonFinalResIds=false kotlin.jvm.target.validation.mode=IGNORE org.gradle.parallel=true org.gradle.caching=true -android.enableR8.fullMode=true +android.enableR8.fullMode=false From ec9947eb8a5b1dd4b57cf08c4c6631dcadeabc11 Mon Sep 17 00:00:00 2001 From: Code-Floof Date: Mon, 22 Jul 2024 02:16:35 -0400 Subject: [PATCH 2/2] Update sensors.dart --- lib/Backend/sensors.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Backend/sensors.dart b/lib/Backend/sensors.dart index e6a2aa3a..d3f1da05 100644 --- a/lib/Backend/sensors.dart +++ b/lib/Backend/sensors.dart @@ -546,8 +546,9 @@ class RandomTriggerDefinition extends TriggerDefinition { @override Future onEnable() async { - randomTimer = Timer(Duration(seconds: Random().nextInt(240)), () { + randomTimer = Timer(Duration(seconds: Random().nextInt(120)), () { sendCommands("Action", ref); + onEnable(); }); } }