Added: Add support for getting termux app and plugin app info only in TermuxUtils.getAppInfoMarkdownString()

This commit is contained in:
agnostic-apollo
2022-03-16 20:53:37 +05:00
parent 9a65aa4589
commit 621545dd0a

View File

@@ -37,6 +37,8 @@ public class TermuxUtils {
public enum AppInfoMode {
/** Get info for Termux app only. */
TERMUX_PACKAGE,
/** Get info for Termux app and plugin app if context is of plugin app. */
TERMUX_AND_PLUGIN_PACKAGE,
/** Get info for Termux app and its plugins listed in {@link TermuxConstants#TERMUX_PLUGIN_APP_PACKAGE_NAMES_LIST}. */
TERMUX_AND_PLUGIN_PACKAGES,
/* Get info for all the Termux app plugins listed in {@link TermuxConstants#TERMUX_PLUGIN_APP_PACKAGE_NAMES_LIST}. */
@@ -259,6 +261,9 @@ public class TermuxUtils {
case TERMUX_PACKAGE:
return getAppInfoMarkdownString(currentPackageContext, false);
case TERMUX_AND_PLUGIN_PACKAGE:
return getAppInfoMarkdownString(currentPackageContext, true);
case TERMUX_AND_PLUGIN_PACKAGES:
appInfo.append(TermuxUtils.getAppInfoMarkdownString(currentPackageContext, false));