You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -181,7 +168,7 @@ public synchronized void onActivityResumed(Activity activity) {
181
168
// cases:
182
169
// 1. At app startup, first activity comes to foreground.
183
170
// 2. app switch from background to foreground.
184
-
// 3. app already in foreground, current activity is replaced by another activity.
171
+
// 3. app already in foreground, current activity is replaced by another activity, or the current activity was paused then resumed without onStop (ex: a dialog pauses the activity, then closing it resumes)
185
172
if (activityToResumedMap.isEmpty()) {
186
173
// The first resumed activity means app comes to foreground.
187
174
resumeTime = clock.getTime();
@@ -198,9 +185,22 @@ public synchronized void onActivityResumed(Activity activity) {
// case 3: app already in foreground, current activity is replaced by another activity.
188
+
// case 3: app already in foreground, current activity is replaced by another activity, or the current activity was paused then resumed without onStop (ex: a dialog pauses the activity, then closing it resumes)
202
189
activityToResumedMap.put(activity, true);
203
190
}
191
+
192
+
if (isScreenTraceSupported(activity) && configResolver.isPerformanceMonitoringEnabled()) {
193
+
// Starts recording frame metrics for this activity.
194
+
/**
195
+
* TODO: Only add activities that are hardware acceleration enabled so that calling {@link
196
+
* FrameMetricsAggregator#remove(Activity)} will not throw exceptions.
0 commit comments