Fix malformed trace section

Fixes an issue where traces had extremely long trace sections named
"com.android.systemui.volume.VolumeDialogImpl$H: ..."

 - Before: http://screen/9FqnTei2mgQTVcb
 - After: http://screen/6dVEB4u36oorCNm

Test: capture perfetto trace, ensure there is no unusual trace sections
Bug: 238923086
Change-Id: Ia1f3e3a519da2f4e836f723e04edd75d65ee5afe
This commit is contained in:
Peter Kalauskas
2023-03-07 16:01:52 -08:00
parent abbb1f8341
commit 51ada5d5e7

View File

@@ -1473,6 +1473,7 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable,
mHandler.removeMessages(H.SHOW);
if (mIsAnimatingDismiss) {
Log.d(TAG, "dismissH: isAnimatingDismiss");
Trace.endSection();
return;
}
mIsAnimatingDismiss = true;