Added APT package info when generating "Report Issue" text

This will now take a few more seconds due to "apt update" command being run.
This commit is contained in:
agnostic-apollo
2021-04-12 19:22:29 +05:00
parent e5c5174f6f
commit 6293f5f170
3 changed files with 117 additions and 0 deletions

View File

@@ -420,6 +420,10 @@ public class TermuxTerminalViewClient implements TerminalViewClient {
reportString.append("\n\n").append(TermuxUtils.getAppInfoMarkdownString(mActivity, true));
reportString.append("\n\n").append(TermuxUtils.getDeviceInfoMarkdownString(mActivity));
String termuxAptInfo = TermuxUtils.geAPTInfoMarkdownString(mActivity);
if (termuxAptInfo != null)
reportString.append("\n\n").append(termuxAptInfo);
ReportActivity.startReportActivity(mActivity, new ReportInfo(UserAction.REPORT_ISSUE_FROM_TRANSCRIPT, TermuxConstants.TERMUX_APP.TERMUX_ACTIVITY_NAME, title, null, reportString.toString(), "\n\n" + TermuxUtils.getReportIssueMarkdownString(mActivity), false));
}