From 8482e8cb9e49f2cd2eee2c732fbfde726ea33a6f Mon Sep 17 00:00:00 2001 From: Mahdi Abolfazli Date: Tue, 23 Jan 2024 15:51:42 +0100 Subject: [PATCH] fix(-sdk): Fix back navigation in review fragment BSDK-258 --- .../capture/review/multipage/MultiPageReviewFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/capture-sdk/sdk/src/main/java/net/gini/android/capture/review/multipage/MultiPageReviewFragment.java b/capture-sdk/sdk/src/main/java/net/gini/android/capture/review/multipage/MultiPageReviewFragment.java index b672b6160e..2e232742c0 100644 --- a/capture-sdk/sdk/src/main/java/net/gini/android/capture/review/multipage/MultiPageReviewFragment.java +++ b/capture-sdk/sdk/src/main/java/net/gini/android/capture/review/multipage/MultiPageReviewFragment.java @@ -142,6 +142,7 @@ public void onCreate(final Bundle savedInstanceState) { @Override public void handleOnBackPressed() { trackReviewScreenEvent(ReviewScreenEvent.BACK); + NavHostFragment.findNavController(MultiPageReviewFragment.this).navigate(MultiPageReviewFragmentDirections.toCameraFragmentForFirstPage()); } }; requireActivity().getOnBackPressedDispatcher().addCallback(this, callback);