Skip to content

Commit 8f47758

Browse files
committed
rearrange line
1 parent 4f9b01c commit 8f47758

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterPlugin.kt

+7-2
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,13 @@ class SentryFlutterPlugin : FlutterPlugin, MethodCallHandler, ActivityAware {
173173

174174
val appStartMetrics = AppStartMetrics.getInstance()
175175

176-
if (!appStartMetrics.isAppLaunchedInForeground || appStartMetrics.appStartTimeSpan.durationMs > 1.toDuration(DurationUnit.MINUTES).inWholeMilliseconds) {
177-
Log.w("Sentry", "Invalid app start data: app not launched in foreground or app start took too long (>60s)")
176+
if (!appStartMetrics.isAppLaunchedInForeground ||
177+
appStartMetrics.appStartTimeSpan.durationMs > 1.toDuration(DurationUnit.MINUTES).inWholeMilliseconds
178+
) {
179+
Log.w(
180+
"Sentry",
181+
"Invalid app start data: app not launched in foreground or app start took too long (>60s)"
182+
)
178183
result.success(null)
179184
}
180185

0 commit comments

Comments
 (0)