Variable comparison check fixed
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user