aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChumva <faiver.unknown@gmail.com>2019-10-25 13:46:55 +0300
committerChumva <faiver.unknown@gmail.com>2019-10-25 13:46:55 +0300
commit4c94cfa131aada4e0aaa63481ee21eda1b37eedb (patch)
tree9dcda9cf0df8fa7078820b4aab00b7f0b37143bd
parent766858012ea2aa8fe9001db85eb9e01ca73fc580 (diff)
downloadOsmand-4c94cfa131aada4e0aaa63481ee21eda1b37eedb.tar.gz
Fix defaultItemHeight
-rw-r--r--OsmAnd/src/net/osmand/plus/routepreparationmenu/AddPointBottomSheetDialog.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/OsmAnd/src/net/osmand/plus/routepreparationmenu/AddPointBottomSheetDialog.java b/OsmAnd/src/net/osmand/plus/routepreparationmenu/AddPointBottomSheetDialog.java
index a48c02c9b1..ad6be46339 100644
--- a/OsmAnd/src/net/osmand/plus/routepreparationmenu/AddPointBottomSheetDialog.java
+++ b/OsmAnd/src/net/osmand/plus/routepreparationmenu/AddPointBottomSheetDialog.java
@@ -595,7 +595,8 @@ public class AddPointBottomSheetDialog extends MenuBottomSheetDialogFragment {
int titleHeight = AndroidUtils.getTextHeight(title.getPaint());
int descriptionHeight = AndroidUtils.getTextHeight(description.getPaint());
int minTextHeight = titleHeight + descriptionHeight * 2;
- if (viewHolder.itemView.getHeight() < minTextHeight) {
+ int defaultItemHeight = viewGroup.getContext().getResources().getDimensionPixelSize(R.dimen.bottom_sheet_selected_item_title_height);
+ if (defaultItemHeight < minTextHeight) {
viewHolder.itemView.setMinimumHeight(minTextHeight);
}
}