forked from organicmaps/organicmaps
[android] Don't cut off top elements in navigation mode
Fixes #3732 Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
This commit is contained in:
parent
343a0a953c
commit
bd0f52639a
1 changed files with 3 additions and 1 deletions
|
@ -215,7 +215,9 @@ public class NavigationController implements Application.ActivityLifecycleCallba
|
|||
private void updateStreetView(@NonNull RoutingInfo info)
|
||||
{
|
||||
boolean hasStreet = !TextUtils.isEmpty(info.nextStreet);
|
||||
UiUtils.showIf(hasStreet, mStreetFrame);
|
||||
// Sic: don't use UiUtils.showIf() here because View.GONE breaks layout
|
||||
// https://github.com/organicmaps/organicmaps/issues/3732
|
||||
UiUtils.visibleIf(hasStreet, mStreetFrame);
|
||||
if (!TextUtils.isEmpty(info.nextStreet))
|
||||
mNextStreet.setText(info.nextStreet);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue