Loading tests/FlickerTests/src/com/android/server/wm/flicker/BaseTest.kt +2 −3 Original line number Diff line number Diff line Loading @@ -40,10 +40,9 @@ abstract class BaseTest constructor( protected val flicker: LegacyFlickerTest, protected val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation(), protected val tapl: LauncherInstrumentation = LauncherInstrumentation() ) { init { tapl.setExpectedRotationCheckEnabled(true) protected val tapl: LauncherInstrumentation by lazy { LauncherInstrumentation().also { it.expectedRotationCheckEnabled = true } } private val logTag = this::class.java.simpleName Loading Loading
tests/FlickerTests/src/com/android/server/wm/flicker/BaseTest.kt +2 −3 Original line number Diff line number Diff line Loading @@ -40,10 +40,9 @@ abstract class BaseTest constructor( protected val flicker: LegacyFlickerTest, protected val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation(), protected val tapl: LauncherInstrumentation = LauncherInstrumentation() ) { init { tapl.setExpectedRotationCheckEnabled(true) protected val tapl: LauncherInstrumentation by lazy { LauncherInstrumentation().also { it.expectedRotationCheckEnabled = true } } private val logTag = this::class.java.simpleName Loading