Skip to content

Commit

Permalink
[android] Fixed notes
Browse files Browse the repository at this point in the history
  • Loading branch information
devnullorthrow authored and alexzatsepin committed May 19, 2020
1 parent 62db6ac commit ef87e02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions android/src/com/mapswithme/maps/MwmActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -1489,6 +1489,8 @@ private void onGuidesStateChanged(@NonNull GuidesState state)
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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ public void activate(@NonNull Context context)
@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;
Expand Down

0 comments on commit ef87e02

Please sign in to comment.