Skip to content
Snippets Groups Projects
Commit c5a0cfdd authored by Colin Cross's avatar Colin Cross
Browse files

Fix kotlin nullable errors in TrustTests

Fix kotlin nullable errors that were exposed by setting the retention
of android.annotation.NonNull and android.annotation.Nullable to
class retention.

Bug: 294110802
Test: builds
Change-Id: I31c4f4d256ff8dd2b6ed1f6ed74844ccaf7a4814
parent f3413858
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ import org.junit.runners.model.Statement
*/
class LockStateTrackingRule : TestRule {
private val context: Context = getApplicationContext()
private val windowManager = WindowManagerGlobal.getWindowManagerService()
private val windowManager = checkNotNull(WindowManagerGlobal.getWindowManagerService())
@Volatile lateinit var lockState: LockState
private set
......
......@@ -36,7 +36,7 @@ import org.junit.runners.model.Statement
class ScreenLockRule : TestRule {
private val context: Context = getApplicationContext()
private val uiDevice = UiDevice.getInstance(getInstrumentation())
private val windowManager = WindowManagerGlobal.getWindowManagerService()
private val windowManager = checkNotNull(WindowManagerGlobal.getWindowManagerService())
private val lockPatternUtils = LockPatternUtils(context)
private var instantLockSavedValue = false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment