mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 02:07:42 +00:00
3116: A more generic way to get account display name for all availabe account types.
This commit is contained in:
parent
98f01f5921
commit
af6fb2fcee
@ -176,8 +176,11 @@ class TableReportGenerator {
|
||||
* compund name by appending a ":" and the account type.
|
||||
*/
|
||||
String accountDisplayname = accountType;
|
||||
if (accountType != null && accountType.equals(Account.Type.CREDIT_CARD.name())) {
|
||||
accountDisplayname = Account.Type.CREDIT_CARD.getDisplayName();
|
||||
for (Account.Type acct : Account.Type.values()) {
|
||||
if (acct.equals(Account.Type.valueOf(accountType))) {
|
||||
accountDisplayname = acct.getDisplayName();
|
||||
break;
|
||||
}
|
||||
}
|
||||
final String compundDataTypeName = BlackboardArtifact.ARTIFACT_TYPE.TSK_ACCOUNT.getDisplayName() + ": " + accountDisplayname;
|
||||
writeTableForDataType(new ArrayList<>(groupedArtifacts.get(accountType)), type, compundDataTypeName, comment);
|
||||
|
Loading…
x
Reference in New Issue
Block a user