android: collapse pp when content size stays the same

Signed-off-by: Arnaud Vergnet <arnaud.vergnet@mailo.com>
This commit is contained in:
Arnaud Vergnet 2023-01-24 22:08:51 +01:00 committed by Viktor Govako
parent c350332f3e
commit fd212e3040

View file

@ -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