Skip to content

Commit

Permalink
Changed: Trim arguments length to 20 in blurb
Browse files Browse the repository at this point in the history
  • Loading branch information
agnostic-apollo committed Sep 23, 2021
1 parent 2eca337 commit a80fe8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/com/termux/tasker/PluginBundleManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ public static String generateBlurb(@NonNull final Context context, final String
final String backgroundCustomLogLevel,
final boolean inTerminal, final boolean waitForResult) {
StringBuilder builder = new StringBuilder();
builder.append(context.getString(R.string.blurb_executable_and_arguments, executable, arguments == null ? "" : " " + arguments));
builder.append(context.getString(R.string.blurb_executable_and_arguments, executable,
arguments == null ? "" : " " + (arguments.length() > 20 ? arguments.substring(0, 20) : arguments)));
builder.append("\n\n").append(context.getString(R.string.blurb_working_directory, (!DataUtils.isNullOrEmpty(workingDirectory) ? UNICODE_CHECK : UNICODE_UNCHECK)));

if (!inTerminal) {
Expand Down

0 comments on commit a80fe8f

Please sign in to comment.