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 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(); }); } }