Compare commits
No commits in common. "e84842361cf40bda380fb9036329dc7cd292b046" and "7167f0c03d2381cc67d120b52429970767f8e450" have entirely different histories.
e84842361c
...
7167f0c03d
@ -353,7 +353,6 @@ public class ActivityControlCenter extends Activity
|
|||||||
systemInfoText.append("Device details" + Miscellaneous.lineSeparator);
|
systemInfoText.append("Device details" + Miscellaneous.lineSeparator);
|
||||||
systemInfoText.append("OS version: " + System.getProperty("os.version") + Miscellaneous.lineSeparator);
|
systemInfoText.append("OS version: " + System.getProperty("os.version") + Miscellaneous.lineSeparator);
|
||||||
systemInfoText.append("API Level: " + android.os.Build.VERSION.SDK + Miscellaneous.lineSeparator);
|
systemInfoText.append("API Level: " + android.os.Build.VERSION.SDK + Miscellaneous.lineSeparator);
|
||||||
systemInfoText.append("Target SDK: " + Miscellaneous.getAnyContext().getApplicationInfo().targetSdkVersion + Miscellaneous.lineSeparator);
|
|
||||||
systemInfoText.append("Device: " + android.os.Build.DEVICE + Miscellaneous.lineSeparator);
|
systemInfoText.append("Device: " + android.os.Build.DEVICE + Miscellaneous.lineSeparator);
|
||||||
systemInfoText.append("Model: " + android.os.Build.MODEL + Miscellaneous.lineSeparator);
|
systemInfoText.append("Model: " + android.os.Build.MODEL + Miscellaneous.lineSeparator);
|
||||||
systemInfoText.append("Product: " + android.os.Build.PRODUCT + Miscellaneous.lineSeparator);
|
systemInfoText.append("Product: " + android.os.Build.PRODUCT + Miscellaneous.lineSeparator);
|
||||||
|
@ -1384,18 +1384,8 @@ public class ActivityManageRule extends Activity
|
|||||||
{
|
{
|
||||||
if(resultCode == RESULT_OK)
|
if(resultCode == RESULT_OK)
|
||||||
{
|
{
|
||||||
Trigger editedTrigger = new Trigger();
|
newTrigger = ActivityManageTriggerNotification.resultingTrigger;
|
||||||
editedTrigger.setTriggerType(Trigger_Enum.notification);
|
newTrigger.setParentRule(ruleToEdit);
|
||||||
editedTrigger.setTriggerParameter(data.getBooleanExtra(ActivityManageTriggerNotification.intentNameNotificationDirection, false));
|
|
||||||
editedTrigger.setTriggerParameter2(
|
|
||||||
data.getStringExtra(ActivityManageTriggerNotification.intentNameNotificationApp) + Trigger.triggerParameter2Split +
|
|
||||||
data.getStringExtra(ActivityManageTriggerNotification.intentNameNotificationTitleDir) + Trigger.triggerParameter2Split +
|
|
||||||
data.getStringExtra(ActivityManageTriggerNotification.intentNameNotificationTitle) + Trigger.triggerParameter2Split +
|
|
||||||
data.getStringExtra(ActivityManageTriggerNotification.intentNameNotificationTextDir) + Trigger.triggerParameter2Split +
|
|
||||||
data.getStringExtra(ActivityManageTriggerNotification.intentNameNotificationText)
|
|
||||||
);
|
|
||||||
editedTrigger.setParentRule(ruleToEdit);
|
|
||||||
ruleToEdit.getTriggerSet().set(editIndex, editedTrigger);
|
|
||||||
this.refreshTriggerList();
|
this.refreshTriggerList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1856,7 +1846,7 @@ public class ActivityManageRule extends Activity
|
|||||||
newAction.setAction(Action_Enum.setWifi);
|
newAction.setAction(Action_Enum.setWifi);
|
||||||
getActionParameter1Dialog(ActivityManageRule.this).show();
|
getActionParameter1Dialog(ActivityManageRule.this).show();
|
||||||
|
|
||||||
if(context.getApplicationInfo().targetSdkVersion >= Build.VERSION_CODES.Q)
|
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
|
||||||
Miscellaneous.messageBox(context.getResources().getString(R.string.app_name), context.getResources().getString(R.string.android10WifiToggleNotice), context).show();
|
Miscellaneous.messageBox(context.getResources().getString(R.string.app_name), context.getResources().getString(R.string.android10WifiToggleNotice), context).show();
|
||||||
}
|
}
|
||||||
else if(Action.getActionTypesAsArray()[which].toString().equals(Action_Enum.setBluetooth.toString()))
|
else if(Action.getActionTypesAsArray()[which].toString().equals(Action_Enum.setBluetooth.toString()))
|
||||||
|
@ -322,6 +322,14 @@ public class ActivityManageTriggerNotification extends Activity
|
|||||||
String textDir = Trigger.getMatchCode(spinnerTextDirection.getSelectedItem().toString());
|
String textDir = Trigger.getMatchCode(spinnerTextDirection.getSelectedItem().toString());
|
||||||
String text = etNotificationText.getText().toString();
|
String text = etNotificationText.getText().toString();
|
||||||
|
|
||||||
|
if(edit)
|
||||||
|
{
|
||||||
|
editedNotificationTrigger.setTriggerParameter(chkNotificationDirection.isChecked());
|
||||||
|
editedNotificationTrigger.setTriggerParameter2(app + triggerParameter2Split + titleDir + triggerParameter2Split + title + triggerParameter2Split + textDir + triggerParameter2Split + text);
|
||||||
|
ActivityManageTriggerNotification.this.setResult(RESULT_OK);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
Intent data = new Intent();
|
Intent data = new Intent();
|
||||||
data.putExtra(intentNameNotificationDirection, chkNotificationDirection.isChecked());
|
data.putExtra(intentNameNotificationDirection, chkNotificationDirection.isChecked());
|
||||||
data.putExtra(intentNameNotificationApp, app);
|
data.putExtra(intentNameNotificationApp, app);
|
||||||
@ -330,6 +338,7 @@ public class ActivityManageTriggerNotification extends Activity
|
|||||||
data.putExtra(intentNameNotificationTextDir, textDir);
|
data.putExtra(intentNameNotificationTextDir, textDir);
|
||||||
data.putExtra(intentNameNotificationText, text);
|
data.putExtra(intentNameNotificationText, text);
|
||||||
ActivityManageTriggerNotification.this.setResult(RESULT_OK, data);
|
ActivityManageTriggerNotification.this.setResult(RESULT_OK, data);
|
||||||
|
}
|
||||||
|
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
* New trigger: device has just started
|
* New trigger: device has just started
|
||||||
* New trigger: service has just started
|
* New trigger: service has just started
|
||||||
* New trigger: Respond to customizable broadcasts
|
|
||||||
* New parameter for trigger Screen state: New state "locked"
|
* New parameter for trigger Screen state: New state "locked"
|
||||||
|
* New trigger: Respond to customizable broadcasts
|
||||||
* New action: Send broadcasts
|
* New action: Send broadcasts
|
||||||
* Fixed: Crash when editing notification trigger
|
|
||||||
* Fixed: TimeFrame trigger - time may have changed when crossing timezones
|
|
Loading…
Reference in New Issue
Block a user