[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
This commit is contained in:
Milton Wu
2023-08-09 19:33:56 +08:00
parent 33d480ed56
commit 181538084d

View File

@@ -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)")
}