From a80fe8fbd1e58e0f017374e02ec21e4f4720cc5c Mon Sep 17 00:00:00 2001 From: agnostic-apollo Date: Wed, 22 Sep 2021 14:15:59 +0500 Subject: [PATCH] Changed: Trim arguments length to 20 in blurb --- app/src/main/java/com/termux/tasker/PluginBundleManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/termux/tasker/PluginBundleManager.java b/app/src/main/java/com/termux/tasker/PluginBundleManager.java index d196acf..522c7ff 100644 --- a/app/src/main/java/com/termux/tasker/PluginBundleManager.java +++ b/app/src/main/java/com/termux/tasker/PluginBundleManager.java @@ -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) {