Skip to content

Commit f0c5110

Browse files
committed
cbetter javadoc and comments
1 parent 5e745d1 commit f0c5110

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

firebase-perf/src/main/java/com/google/firebase/perf/application/AppStateMonitor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ public void onActivityCreated(Activity activity, Bundle savedInstanceState) {
166166

167167
@Override
168168
public void onActivityDestroyed(Activity activity) {
169+
// Dereference FrameMetricsRecorder from the map because it holds an Activity reference
169170
activityToRecorderMap.remove(activity);
171+
// Dereference FragmentStateMonitor because it holds a FrameMetricsRecorder reference
170172
if (activityToFragmentStateMonitorMap.containsKey(activity)) {
171173
FragmentActivity fragmentActivity = (FragmentActivity) activity;
172174
fragmentActivity

0 commit comments

Comments
 (0)