mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 02:35:19 +08:00
Fixed: Do not add double heading if callingPackageName passed to TermuxUtils.getAppInfoMarkdownString()
is a plugin app
This commit is contained in:
@@ -273,11 +273,11 @@ public class TermuxUtils {
|
||||
case TERMUX_AND_CALLING_PACKAGE:
|
||||
appInfo.append(TermuxUtils.getAppInfoMarkdownString(currentPackageContext, false));
|
||||
if (!DataUtils.isNullOrEmpty(callingPackageName)) {
|
||||
String callingPackageAppInfo;
|
||||
String callingPackageAppInfo = null;
|
||||
if (TermuxConstants.TERMUX_PLUGIN_APP_PACKAGE_NAMES_LIST.contains(callingPackageName)) {
|
||||
Context termuxPluginAppContext = PackageUtils.getContextForPackage(currentPackageContext, callingPackageName);
|
||||
if (termuxPluginAppContext != null)
|
||||
callingPackageAppInfo = getAppInfoMarkdownString(termuxPluginAppContext, false);
|
||||
appInfo.append(getAppInfoMarkdownString(termuxPluginAppContext, false));
|
||||
else
|
||||
callingPackageAppInfo = AndroidUtils.getAppInfoMarkdownString(currentPackageContext, callingPackageName);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user