For #18836: address lint errors for StartupStateProvider*.

upstream-sync
Michael Comella 3 years ago committed by Michael Comella
parent ea1d569837
commit ec65737cbb

@ -112,6 +112,7 @@ class StartupStateProvider(
}
val afterLastStopped = startupLog.log.takeLastWhile { it != LogEntry.AppStopped }
@Suppress("MagicNumber") // we take a specific number at the end of the list to compare them.
val isLastActivityCreatedStillStarted = afterLastStopped.takeLast(3) == listOf(
LogEntry.ActivityCreated(activityClass),
LogEntry.ActivityStarted(activityClass),

Loading…
Cancel
Save