From 401a3a808dc708ce0e191abe17f1ea05fd301fa0 Mon Sep 17 00:00:00 2001 From: Walter White <3d6b84b0@gmail.com> Date: Thu, 23 Nov 2023 03:08:32 -0500 Subject: [PATCH] [android] Dismiss spinner when user aborts downloading area Closes #6126 Signed-off-by: Walter White --- .../app/organicmaps/routing/RoutingErrorDialogFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/android/app/src/main/java/app/organicmaps/routing/RoutingErrorDialogFragment.java b/android/app/src/main/java/app/organicmaps/routing/RoutingErrorDialogFragment.java index 951213f5d6..b7fafcd930 100644 --- a/android/app/src/main/java/app/organicmaps/routing/RoutingErrorDialogFragment.java +++ b/android/app/src/main/java/app/organicmaps/routing/RoutingErrorDialogFragment.java @@ -55,8 +55,10 @@ public class RoutingErrorDialogFragment extends BaseRoutingErrorDialogFragment @Override public void onDismiss(DialogInterface dialog) { - if (mNeedMoreMaps && mCancelled) + if (mNeedMoreMaps && mCancelled) { mCancelled = false; + RoutingController.get().cancel(); + } super.onDismiss(dialog); }