forked from organicmaps/organicmaps-tmp
android: collapse pp when content size stays the same
Signed-off-by: Arnaud Vergnet <arnaud.vergnet@mailo.com>
This commit is contained in:
parent
c350332f3e
commit
fd212e3040
1 changed files with 4 additions and 0 deletions
|
@ -1303,6 +1303,10 @@ public class PlacePageView extends Fragment implements View.OnClickListener,
|
|||
updateBookmarkButton();
|
||||
refreshViews();
|
||||
}
|
||||
// In case the place page has already some data, make sure to call the onPlacePageContentChanged callback
|
||||
// to catch cases where the new data has the exact same height as the previous one (eg 2 address nodes)
|
||||
if (mFrame.getHeight() > 0)
|
||||
mPlacePageViewListener.onPlacePageContentChanged(mPreview.getHeight(), mFrame.getHeight());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue