From 74f8006057cd06aa5f2b612c974a19c274fbe6c1 Mon Sep 17 00:00:00 2001 From: Roman Tsisyk Date: Thu, 4 Nov 2021 10:30:20 +0300 Subject: [PATCH] [android] Fix crash in CountrySuggestFragment Signed-off-by: Roman Tsisyk --- .../mapswithme/maps/downloader/CountrySuggestFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/com/mapswithme/maps/downloader/CountrySuggestFragment.java b/android/src/com/mapswithme/maps/downloader/CountrySuggestFragment.java index 17471a563d..d59ea13287 100644 --- a/android/src/com/mapswithme/maps/downloader/CountrySuggestFragment.java +++ b/android/src/com/mapswithme/maps/downloader/CountrySuggestFragment.java @@ -12,9 +12,9 @@ import android.widget.TextView; import androidx.annotation.Nullable; -import com.mapswithme.maps.MwmActivity; import com.mapswithme.maps.R; import com.mapswithme.maps.base.BaseMwmFragment; +import com.mapswithme.maps.base.BaseMwmFragmentActivity; import com.mapswithme.maps.location.LocationHelper; import com.mapswithme.maps.widget.WheelProgressView; import com.mapswithme.util.StringUtils; @@ -215,7 +215,7 @@ public class CountrySuggestFragment extends BaseMwmFragment implements View.OnCl break; case R.id.btn__select_map: - MwmActivity activity = Utils.castTo(getActivity()); + BaseMwmFragmentActivity activity = Utils.castTo(getActivity()); activity.replaceFragment(DownloaderFragment.class, null, null); break;