From: k.stepaniuk Date: Fri, 11 Dec 2020 08:58:29 +0000 (+0100) Subject: Fixing review X-Git-Tag: accepted/tizen/unified/20210915.100113~114 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5dfce3434477a59dbe489d848381d12762cd13d;p=profile%2Fiot%2Fapps%2Fdotnet%2Ffitness.git Fixing review Signed-off-by: k.stepaniuk --- diff --git a/Fitness/Controls/NavigationStack.cs b/Fitness/Controls/NavigationStack.cs index c72521c..41b0724 100644 --- a/Fitness/Controls/NavigationStack.cs +++ b/Fitness/Controls/NavigationStack.cs @@ -36,21 +36,21 @@ namespace Fitness.Controls public void Pop() { - PopCore(); - ActivateTopPage(); + PopLast(); + ShowLast(); } public void PopToRoot() { while (pages.Count > 1) { - PopCore(); + PopLast(); } - ActivateTopPage(); + ShowLast(); } - private void PopCore() + private void PopLast() { if (pages.TryPeek(out Page last)) { @@ -59,7 +59,7 @@ namespace Fitness.Controls } } - private void ActivateTopPage() + private void ShowLast() { if (pages.TryPeek(out Page current)) {