From ef87e029f1394a01fbe6087387b1ad5a93430ef7 Mon Sep 17 00:00:00 2001 From: Dmitry Donskoy Date: Tue, 19 May 2020 19:25:53 +0300 Subject: [PATCH] [android] Fixed notes --- android/src/com/mapswithme/maps/MwmActivity.java | 2 ++ .../src/com/mapswithme/maps/maplayer/guides/GuidesState.java | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/android/src/com/mapswithme/maps/MwmActivity.java b/android/src/com/mapswithme/maps/MwmActivity.java index 167c7d039f..3551471686 100644 --- a/android/src/com/mapswithme/maps/MwmActivity.java +++ b/android/src/com/mapswithme/maps/MwmActivity.java @@ -1489,6 +1489,8 @@ public class MwmActivity extends BaseMwmFragmentActivity private void onGuidesFatalError() { mToggleMapLayerController.turnOff(); + RecyclerView bottomSheetRecycler = findViewById(R.id.layers_recycler); + Objects.requireNonNull(bottomSheetRecycler.getAdapter()).notifyDataSetChanged(); showGuidesFatalErrorDialog(); ToggleMapLayerDialog frag = ToggleMapLayerDialog.getInstance(this); if (frag == null) diff --git a/android/src/com/mapswithme/maps/maplayer/guides/GuidesState.java b/android/src/com/mapswithme/maps/maplayer/guides/GuidesState.java index 5d7717a31f..1d388e76a8 100644 --- a/android/src/com/mapswithme/maps/maplayer/guides/GuidesState.java +++ b/android/src/com/mapswithme/maps/maplayer/guides/GuidesState.java @@ -36,8 +36,7 @@ public enum GuidesState @Override public void activate(@NonNull Context context) { - Toast.makeText(context, R.string.connection_error_toast_guides, Toast.LENGTH_SHORT) - .show(); + Toast.makeText(context, R.string.connection_error_toast_guides, Toast.LENGTH_SHORT).show(); } }, FATAL_NETWORK_ERROR;