File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
benchmarks/src/main/java/com/google/samples/apps/nowinandroid/startup Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import androidx.benchmark.macro.StartupTimingMetric
2727import androidx.benchmark.macro.junit4.MacrobenchmarkRule
2828import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
2929import com.google.samples.apps.nowinandroid.PACKAGE_NAME
30+ import com.google.samples.apps.nowinandroid.allowNotifications
3031import com.google.samples.apps.nowinandroid.foryou.forYouWaitForContent
3132import org.junit.Rule
3233import org.junit.Test
@@ -86,6 +87,7 @@ abstract class AbstractStartupBenchmark(private val startupMode: StartupMode) {
8687 },
8788 ) {
8889 startActivityAndWait()
90+ allowNotifications()
8991 // Waits until the content is ready to capture Time To Full Display
9092 forYouWaitForContent()
9193 }
You can’t perform that action at this time.
0 commit comments