From d56e5f6ded3c87c7824fc6b7b17613782b4c2835 Mon Sep 17 00:00:00 2001 From: Mohamad Mahmoud Date: Wed, 5 Oct 2022 09:05:51 +0000 Subject: [PATCH] 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 --- .../core/java/com/android/server/am/ActivityManagerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java index d84b0e83646ce..38119e7327652 100644 --- a/services/core/java/com/android/server/am/ActivityManagerService.java +++ b/services/core/java/com/android/server/am/ActivityManagerService.java @@ -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 offsets = dumpStackTraces(