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;