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

Commit a80fe8f

Browse files
Changed: Trim arguments length to 20 in blurb
1 parent 2eca337 commit a80fe8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ public static String generateBlurb(@NonNull final Context context, final String
175175
final String backgroundCustomLogLevel,
176176
final boolean inTerminal, final boolean waitForResult) {
177177
StringBuilder builder = new StringBuilder();
178-
builder.append(context.getString(R.string.blurb_executable_and_arguments, executable, arguments == null ? "" : " " + arguments));
178+
builder.append(context.getString(R.string.blurb_executable_and_arguments, executable,
179+
arguments == null ? "" : " " + (arguments.length() > 20 ? arguments.substring(0, 20) : arguments)));
179180
builder.append("\n\n").append(context.getString(R.string.blurb_working_directory, (!DataUtils.isNullOrEmpty(workingDirectory) ? UNICODE_CHECK : UNICODE_UNCHECK)));
180181

181182
if (!inTerminal) {

0 commit comments

Comments
 (0)