diff --git a/app/src/apkFlavor/AndroidManifest.xml b/app/src/apkFlavor/AndroidManifest.xml index baa18f9..d1f8b47 100644 --- a/app/src/apkFlavor/AndroidManifest.xml +++ b/app/src/apkFlavor/AndroidManifest.xml @@ -233,7 +233,6 @@ - @@ -242,6 +241,7 @@ + + + ruleCandidates = Rule.findRuleCandidates(Trigger_Enum.charging); -// ArrayList ruleCandidates = Rule.findRuleCandidatesByCharging(true); for(int i=0; i ruleCandidates = Rule.findRuleCandidates(Trigger_Enum.usb_host_connection); -// ArrayList ruleCandidates = Rule.findRuleCandidatesByUsbHost(true); for(Rule oneRule : ruleCandidates) { if(oneRule.getsGreenLight(context)) oneRule.activate(automationServiceRef, false); } - this.actionCharging(context); + this.actionCharging(context, BatteryManager.BATTERY_PLUGGED_USB); } } diff --git a/app/src/main/res/layout/activity_manage_trigger_charging.xml b/app/src/main/res/layout/activity_manage_trigger_charging.xml new file mode 100644 index 0000000..cc95409 --- /dev/null +++ b/app/src/main/res/layout/activity_manage_trigger_charging.xml @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +