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
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java
index d84b0e8..38119e7 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 @@
             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(