From 54f3cc84c4e7d2501eb7322063b5476cf34693e4 Mon Sep 17 00:00:00 2001 From: Jens Date: Sun, 19 Nov 2023 23:44:10 +0100 Subject: [PATCH] Start other service bugfix attempt --- app/src/main/java/com/jens/automation2/Actions.java | 2 ++ .../jens/automation2/ActivityManageActionStartActivity.java | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/app/src/main/java/com/jens/automation2/Actions.java b/app/src/main/java/com/jens/automation2/Actions.java index 7fd67c7..46ef345 100644 --- a/app/src/main/java/com/jens/automation2/Actions.java +++ b/app/src/main/java/com/jens/automation2/Actions.java @@ -1066,6 +1066,8 @@ public class Actions if(packageName.equals("dummyPkg")) externalApplicationIntent.setAction(className); + externalApplicationIntent.setClassName(packageName, className); + if (!Miscellaneous.doesActivityExist(externalApplicationIntent, Miscellaneous.getAnyContext())) Miscellaneous.logEvent("w", "StartOtherApp", "Activity not found: " + className, 2); } diff --git a/app/src/main/java/com/jens/automation2/ActivityManageActionStartActivity.java b/app/src/main/java/com/jens/automation2/ActivityManageActionStartActivity.java index 03eb63d..69251cb 100644 --- a/app/src/main/java/com/jens/automation2/ActivityManageActionStartActivity.java +++ b/app/src/main/java/com/jens/automation2/ActivityManageActionStartActivity.java @@ -298,7 +298,11 @@ public class ActivityManageActionStartActivity extends Activity public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if(isChecked) + { bSelectApp.setEnabled(isChecked); + } +bug + etClassName.setEnabled(!isChecked); } });