这是indexloc提供的服务,不要输入任何密码
Skip to content

Commit 2eca337

Browse files
Added: Send plugin github repo url to TermuxService to be shown in case of failure
1 parent cf1eda4 commit 2eca337

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/src/main/java/com/termux/tasker/FireReceiver.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ public void onReceive(final Context context, final Intent intent) {
190190
executionIntent.putExtra(TERMUX_SERVICE.EXTRA_SESSION_ACTION, executionCommand.sessionAction);
191191
executionIntent.putExtra(TERMUX_SERVICE.EXTRA_BACKGROUND_CUSTOM_LOG_LEVEL, DataUtils.getStringFromInteger(executionCommand.backgroundCustomLogLevel, null));
192192
executionIntent.putExtra(TERMUX_SERVICE.EXTRA_BACKGROUND, executionCommand.inBackground);
193+
executionIntent.putExtra(TERMUX_SERVICE.EXTRA_PLUGIN_API_HELP, context.getString(R.string.help, TermuxConstants.TERMUX_TASKER_GITHUB_REPO_URL));
193194

194195
// Send execution intent to TERMUX_SERVICE
195196
PluginUtils.sendExecuteIntentToExecuteService(context, this, intent, executionIntent, waitForResult);

app/src/main/res/values/strings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
It's also used by plugin caller app as plugin name like in Tasker in "Select Action Category" > "Plugin" dialog, so keep this one short -->
1515
<string name="application_name">&TERMUX_TASKER_APP_NAME;</string>
1616
<string name="shared_user_label">&TERMUX_APP_NAME; user</string>
17+
<string name="help">Visit %1$s for more info on plugin usage.</string>
18+
1719
<!-- The plugin name as shown in plugin caller app in the Task Edit activity.-->
1820
<string name="plugin_name">&TERMUX_APP_NAME;</string>
1921
<string name="title_executable_path">Executable (file in &TERMUX_TASKER_SCRIPTS_DIR_PATH_SHORT; or absolute path to executable)</string>
@@ -32,8 +34,6 @@
3234
<string name="error_null_or_empty_executable">The executable is null or empty.</string>
3335
<string name="error_int_not_in_range">Value must be in between %1$d and %2$d.</string>
3436

35-
<string name="help">Visit %1$s for more info on plugin usage.</string>
36-
3737
<string name="error_unknown_app">(unknown)</string>
3838
<string name="error_null_bundle">The bundle is null.</string>
3939
<string name="msg_variable_in_string">(variable detected)</string>

0 commit comments

Comments
 (0)