Skip to content

Commit

Permalink
Added: Send plugin github repo url to TermuxService to be shown in ca…
Browse files Browse the repository at this point in the history
…se of failure
  • Loading branch information
agnostic-apollo committed Sep 22, 2021
1 parent cf1eda4 commit 2eca337
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/com/termux/tasker/FireReceiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ public void onReceive(final Context context, final Intent intent) {
executionIntent.putExtra(TERMUX_SERVICE.EXTRA_SESSION_ACTION, executionCommand.sessionAction);
executionIntent.putExtra(TERMUX_SERVICE.EXTRA_BACKGROUND_CUSTOM_LOG_LEVEL, DataUtils.getStringFromInteger(executionCommand.backgroundCustomLogLevel, null));
executionIntent.putExtra(TERMUX_SERVICE.EXTRA_BACKGROUND, executionCommand.inBackground);
executionIntent.putExtra(TERMUX_SERVICE.EXTRA_PLUGIN_API_HELP, context.getString(R.string.help, TermuxConstants.TERMUX_TASKER_GITHUB_REPO_URL));

// Send execution intent to TERMUX_SERVICE
PluginUtils.sendExecuteIntentToExecuteService(context, this, intent, executionIntent, waitForResult);
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
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 -->
<string name="application_name">&TERMUX_TASKER_APP_NAME;</string>
<string name="shared_user_label">&TERMUX_APP_NAME; user</string>
<string name="help">Visit %1$s for more info on plugin usage.</string>

<!-- The plugin name as shown in plugin caller app in the Task Edit activity.-->
<string name="plugin_name">&TERMUX_APP_NAME;</string>
<string name="title_executable_path">Executable (file in &TERMUX_TASKER_SCRIPTS_DIR_PATH_SHORT; or absolute path to executable)</string>
Expand All @@ -32,8 +34,6 @@
<string name="error_null_or_empty_executable">The executable is null or empty.</string>
<string name="error_int_not_in_range">Value must be in between %1$d and %2$d.</string>

<string name="help">Visit %1$s for more info on plugin usage.</string>

<string name="error_unknown_app">(unknown)</string>
<string name="error_null_bundle">The bundle is null.</string>
<string name="msg_variable_in_string">(variable detected)</string>
Expand Down

0 comments on commit 2eca337

Please sign in to comment.