Skip to content

Fix onBackPressed handling to respect hyperServicesHolder response#899

Open
Manas-Dikshit wants to merge 1 commit intojuspay:masterfrom
Manas-Dikshit:master
Open

Fix onBackPressed handling to respect hyperServicesHolder response#899
Manas-Dikshit wants to merge 1 commit intojuspay:masterfrom
Manas-Dikshit:master

Conversation

@Manas-Dikshit
Copy link
Copy Markdown

Currently, the onBackPressed method calls super.onBackPressed() even when
hyperServicesHolder.handleBackPress() has already handled the back press.
This can lead to unintended navigation and inconsistent behavior.

This PR updates the logic to only call super.onBackPressed() when
handleBackPress() returns false, ensuring that back presses are properly
intercepted when needed. The method structure and naming are preserved to
align with existing code standards and CI/CD checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant