Fix NPE
This commit is contained in:
parent
949523f1d1
commit
4ac46d74e8
1 changed files with 6 additions and 4 deletions
|
@ -622,11 +622,13 @@ public class MeasurementToolFragment extends BaseOsmAndFragment implements Route
|
||||||
|
|
||||||
private void expandInfoView() {
|
private void expandInfoView() {
|
||||||
infoExpanded = true;
|
infoExpanded = true;
|
||||||
shiftBottomMapControls(false);
|
if (portrait) {
|
||||||
|
setMapPosition(OsmandSettings.MIDDLE_TOP_CONSTANT);
|
||||||
|
} else {
|
||||||
|
shiftBottomMapControls(false);
|
||||||
|
setMapPosition(OsmandSettings.LANDSCAPE_MIDDLE_RIGHT_CONSTANT);
|
||||||
|
}
|
||||||
cardsContainer.setVisibility(View.VISIBLE);
|
cardsContainer.setVisibility(View.VISIBLE);
|
||||||
setMapPosition(portrait
|
|
||||||
? OsmandSettings.MIDDLE_TOP_CONSTANT
|
|
||||||
: OsmandSettings.LANDSCAPE_MIDDLE_RIGHT_CONSTANT);
|
|
||||||
updateUpDownBtn();
|
updateUpDownBtn();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue