Variable comparison check fixed

This commit is contained in:
2025-12-06 11:30:58 +01:00
parent f7d8389668
commit d117484143
3 changed files with 5 additions and 6 deletions

View File

@@ -46,8 +46,8 @@ public class ActivityManageTriggerTimeFrame extends Activity
setContentView(R.layout.activity_manage_trigger_timeframe); setContentView(R.layout.activity_manage_trigger_timeframe);
if(Build.VERSION.SDK_INT == 34) // if(Build.VERSION.SDK_INT == 34)
Miscellaneous.messageBox(getResources().getString(R.string.info), getResources().getString(R.string.Android14TimePickerHint), ActivityManageTriggerTimeFrame.this).show(); // Miscellaneous.messageBox(getResources().getString(R.string.info), getResources().getString(R.string.Android14TimePickerHint), ActivityManageTriggerTimeFrame.this).show();
startPicker = (TimePicker)findViewById(R.id.tpTimeFrameStart); startPicker = (TimePicker)findViewById(R.id.tpTimeFrameStart);
stopPicker = (TimePicker)findViewById(R.id.tpTimeFrameStop); stopPicker = (TimePicker)findViewById(R.id.tpTimeFrameStop);

View File

@@ -679,13 +679,11 @@ public class Trigger
{ {
if(Miscellaneous.isRegularExpression(conditions[1])) if(Miscellaneous.isRegularExpression(conditions[1]))
{ {
if (map.get(conditions[0]).matches(conditions[1])) return (map.get(conditions[0]).matches(conditions[1]) == this.getTriggerParameter());
return this.getTriggerParameter();
} }
else else
{ {
if (map.get(conditions[0]).equals(conditions[1])) return (map.get(conditions[0]).equals(conditions[1]) == this.getTriggerParameter());
return this.getTriggerParameter();
} }
} }
} }

View File

@@ -5,4 +5,5 @@
* Fixed: Permission BLUETOOTH_CONNECT requested for Bluetooth trigger editor in Google Play version * Fixed: Permission BLUETOOTH_CONNECT requested for Bluetooth trigger editor in Google Play version
* Fixed: Airplane mode trigger didn't work if no locations where defined. * Fixed: Airplane mode trigger didn't work if no locations where defined.
* Fixed: Vibrate action didn't work on some devices * Fixed: Vibrate action didn't work on some devices
* Fixed: Variable trigger didn't always compare correctly.
* Added Possibility to select UI theme, hence enabling modern UI designs * Added Possibility to select UI theme, hence enabling modern UI designs