forked from jens/Automation
Battery receiver toasts removed
This commit is contained in:
parent
26e4851c0d
commit
c464a9d71f
@ -225,7 +225,7 @@ public class BatteryReceiver extends BroadcastReceiver implements AutomationList
|
|||||||
{
|
{
|
||||||
usbHostConnected = true;
|
usbHostConnected = true;
|
||||||
Miscellaneous.logEvent("i", "BatteryReceiver", "Connected to computer.", 3);
|
Miscellaneous.logEvent("i", "BatteryReceiver", "Connected to computer.", 3);
|
||||||
Toast.makeText(context, "Connected to computer.", Toast.LENGTH_LONG).show();
|
// Toast.makeText(context, "Connected to computer.", Toast.LENGTH_LONG).show();
|
||||||
|
|
||||||
ArrayList<Rule> ruleCandidates = Rule.findRuleCandidates(Trigger_Enum.usb_host_connection);
|
ArrayList<Rule> ruleCandidates = Rule.findRuleCandidates(Trigger_Enum.usb_host_connection);
|
||||||
// ArrayList<Rule> ruleCandidates = Rule.findRuleCandidatesByUsbHost(true);
|
// ArrayList<Rule> ruleCandidates = Rule.findRuleCandidatesByUsbHost(true);
|
||||||
@ -247,7 +247,7 @@ public class BatteryReceiver extends BroadcastReceiver implements AutomationList
|
|||||||
{
|
{
|
||||||
usbHostConnected = false;
|
usbHostConnected = false;
|
||||||
Miscellaneous.logEvent("i", "BatteryReceiver", "Disconnected from computer.", 3);
|
Miscellaneous.logEvent("i", "BatteryReceiver", "Disconnected from computer.", 3);
|
||||||
Toast.makeText(context, "Disconnected from computer.", Toast.LENGTH_LONG).show();
|
// Toast.makeText(context, "Disconnected from computer.", Toast.LENGTH_LONG).show();
|
||||||
|
|
||||||
ArrayList<Rule> ruleCandidates = Rule.findRuleCandidates(Trigger_Enum.usb_host_connection);
|
ArrayList<Rule> ruleCandidates = Rule.findRuleCandidates(Trigger_Enum.usb_host_connection);
|
||||||
// ArrayList<Rule> ruleCandidates = Rule.findRuleCandidatesByUsbHost(false);
|
// ArrayList<Rule> ruleCandidates = Rule.findRuleCandidatesByUsbHost(false);
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
* Fixed: Run executable action - when editing values were not loaded in editor
|
* Fixed: Run executable action - when editing values were not loaded in editor
|
||||||
* Added: Variables usable in intent parameters
|
* Added: Variables usable in intent parameters
|
||||||
|
* Removed: Removed toasts for computer connection/disconnection
|
Loading…
Reference in New Issue
Block a user