Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f4f6193 authored by Eric Rowe's avatar Eric Rowe
Browse files

Fix formatting of ANRs.

Fix for cases where an extra newline would be added and/or a newline at the end of a line would be ommited.
parent fc081668
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -4638,11 +4638,12 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
        if (activity != null && activity.shortComponentName != null) {
            info.append(" (").append(activity.shortComponentName).append(")");
        }
        info.append("\n");
        if (annotation != null) {
            info.append("\nReason: ").append(annotation).append("\n");
            info.append("Reason: ").append(annotation).append("\n");
        }
        if (parent != null && parent != activity) {
            info.append("\nParent: ").append(parent.shortComponentName);
            info.append("Parent: ").append(parent.shortComponentName).append("\n");
        }
        String cpuInfo = null;