From: Damyan Ivanov Date: Sat, 30 Jan 2021 11:57:11 +0000 (+0000) Subject: when saving a pattern, use the navigateUp() method X-Git-Tag: v0.17.0~202 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=8527ef468f6deeb48b17bec9cf4d87e2ee536145;p=mobile-ledger.git when saving a pattern, use the navigateUp() method this leaves the navigation stack in a better state --- 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;