Fix the subject line bug

Fix a bug that was introduced in ag/19667786 which caused the subject line to not be written to the ANR file (due to improper parenthesization
of the string sent to appendtoANRFile, introduced by manually reformatting the code before uploading the CL)

Test: tested on a device
Bug: 237671718

Change-Id: Idf32cda7d82b4f116bb80300fc3908e702b757c1
This commit is contained in:
Mohamad Mahmoud
2022-10-05 09:05:51 +00:00
parent 94d707ccef
commit d56e5f6ded

View File

@@ -3506,7 +3506,7 @@ public class ActivityManagerService extends IActivityManager.Stub
if (subject != null || criticalEventSection != null) {
appendtoANRFile(tracesFile.getAbsolutePath(),
(subject != null ? "Subject: " + subject + "\n\n" : "")
+ criticalEventSection != null ? criticalEventSection : "");
+ (criticalEventSection != null ? criticalEventSection : ""));
}
Pair<Long, Long> offsets = dumpStackTraces(