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

Commit c64d96c0 authored by Juan Sebastian Martinez's avatar Juan Sebastian Martinez
Browse files

Cleanup of the flag ONE_WAY_HAPTICS_API_MIGRATION on

KeyguardRootViewBinder

Test: presubmit
Bug: 290213663
Flag: NONE
Change-Id: I1b3495b9dadd998d6e2edd198f6be13738f7c146
parent 1775b9d4
Loading
Loading
Loading
Loading
+8 −20
Original line number Diff line number Diff line
@@ -224,16 +224,10 @@ object KeyguardRootViewBinder {
                            deviceEntryHapticsInteractor.playSuccessHaptic
                                .filter { it }
                                .collect {
                                    if (
                                        featureFlags.isEnabled(Flags.ONE_WAY_HAPTICS_API_MIGRATION)
                                    ) {
                                    vibratorHelper.performHapticFeedback(
                                        view,
                                        HapticFeedbackConstants.CONFIRM,
                                    )
                                    } else {
                                        vibratorHelper.vibrateAuthSuccess("device-entry::success")
                                    }
                                    deviceEntryHapticsInteractor.handleSuccessHaptic()
                                }
                        }
@@ -242,16 +236,10 @@ object KeyguardRootViewBinder {
                            deviceEntryHapticsInteractor.playErrorHaptic
                                .filter { it }
                                .collect {
                                    if (
                                        featureFlags.isEnabled(Flags.ONE_WAY_HAPTICS_API_MIGRATION)
                                    ) {
                                    vibratorHelper.performHapticFeedback(
                                        view,
                                        HapticFeedbackConstants.REJECT,
                                    )
                                    } else {
                                        vibratorHelper.vibrateAuthSuccess("device-entry::error")
                                    }
                                    deviceEntryHapticsInteractor.handleErrorHaptic()
                                }
                        }