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

Commit 5d9a1910 authored by Juan Sebastian Martinez's avatar Juan Sebastian Martinez Committed by Android (Google) Code Review
Browse files

Merge "Cleanup of the flag ONE_WAY_HAPTICS_API_MIGRATION on KeyguardRootViewBinder" into main

parents cb2695f8 c64d96c0
Loading
Loading
Loading
Loading
+8 −20
Original line number Original line Diff line number Diff line
@@ -224,16 +224,10 @@ object KeyguardRootViewBinder {
                            deviceEntryHapticsInteractor.playSuccessHaptic
                            deviceEntryHapticsInteractor.playSuccessHaptic
                                .filter { it }
                                .filter { it }
                                .collect {
                                .collect {
                                    if (
                                        featureFlags.isEnabled(Flags.ONE_WAY_HAPTICS_API_MIGRATION)
                                    ) {
                                    vibratorHelper.performHapticFeedback(
                                    vibratorHelper.performHapticFeedback(
                                        view,
                                        view,
                                        HapticFeedbackConstants.CONFIRM,
                                        HapticFeedbackConstants.CONFIRM,
                                    )
                                    )
                                    } else {
                                        vibratorHelper.vibrateAuthSuccess("device-entry::success")
                                    }
                                    deviceEntryHapticsInteractor.handleSuccessHaptic()
                                    deviceEntryHapticsInteractor.handleSuccessHaptic()
                                }
                                }
                        }
                        }
@@ -242,16 +236,10 @@ object KeyguardRootViewBinder {
                            deviceEntryHapticsInteractor.playErrorHaptic
                            deviceEntryHapticsInteractor.playErrorHaptic
                                .filter { it }
                                .filter { it }
                                .collect {
                                .collect {
                                    if (
                                        featureFlags.isEnabled(Flags.ONE_WAY_HAPTICS_API_MIGRATION)
                                    ) {
                                    vibratorHelper.performHapticFeedback(
                                    vibratorHelper.performHapticFeedback(
                                        view,
                                        view,
                                        HapticFeedbackConstants.REJECT,
                                        HapticFeedbackConstants.REJECT,
                                    )
                                    )
                                    } else {
                                        vibratorHelper.vibrateAuthSuccess("device-entry::error")
                                    }
                                    deviceEntryHapticsInteractor.handleErrorHaptic()
                                    deviceEntryHapticsInteractor.handleErrorHaptic()
                                }
                                }
                        }
                        }