From 8527ef468f6deeb48b17bec9cf4d87e2ee536145 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 30 Jan 2021 11:57:11 +0000 Subject: [PATCH] when saving a pattern, use the navigateUp() method this leaves the navigation stack in a better state --- .../net/ktnx/mobileledger/ui/patterns/PatternsActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/patterns/PatternsActivity.java b/app/src/main/java/net/ktnx/mobileledger/ui/patterns/PatternsActivity.java index c9a41280..ad8c2364 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/patterns/PatternsActivity.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/patterns/PatternsActivity.java @@ -104,7 +104,7 @@ public class PatternsActivity extends CrashReportingActivity new ViewModelProvider(viewModelStoreOwner).get(PatternDetailsViewModel.class); Logger.debug("flow", "PatternsActivity.onSavePattern(): model=" + model); model.onSavePattern(); - navController.navigate(R.id.patternListFragment); + navController.navigateUp(); } public NavController getNavController() { return navController; -- 2.39.5