Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18153808 authored by Milton Wu's avatar Milton Wu
Browse files

[BiometricsV2] Fix end-to-end enroll test fail

Fix end-to-end enrollment test fail because of using incorrect observer
type to observe data

Bug: 295140687
Test: atest biometrics-enrollment-test
Change-Id: Idfb95400c1462dac5a44731f46f67b22be93e0a6
parent 33d480ed
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -126,21 +126,21 @@ open class FingerprintEnrollmentActivity : FragmentActivity() {

    private var isFirstFragmentAdded = false

    private val findSensorActionObserver: Observer<Int> = Observer<Int> { action ->
    private val findSensorActionObserver = Observer<Int?> { action ->
        if (DEBUG) {
            Log.d(TAG, "findSensorActionObserver($action)")
        }
        action?.let { onFindSensorAction(it) }
    }

    private val enrollingActionObserver: Observer<Int> = Observer<Int> { action ->
    private val enrollingActionObserver = Observer<Int?> { action ->
        if (DEBUG) {
            Log.d(TAG, "enrollingActionObserver($action)")
        }
        action?.let { onEnrollingAction(it) }
    }

    private val finishActionObserver: Observer<Int> = Observer<Int> { action ->
    private val finishActionObserver = Observer<Int> { action ->
        if (DEBUG) {
            Log.d(TAG, "finishActionObserver($action)")
        }