From 41a117ef23368aa3a67ac4ef9d1f444436853bb3 Mon Sep 17 00:00:00 2001 From: Roman Tsisyk Date: Fri, 15 Oct 2021 09:09:50 +0300 Subject: [PATCH] [android] Enable Android 11 hack unconditionally See 58dcdc "Add a workaround for broken PlacePageView after Search/Edit" Signed-off-by: Roman Tsisyk --- .../com/mapswithme/maps/widget/placepage/PlacePageView.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java index 320509b4f0..5fcc08a3d3 100644 --- a/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java +++ b/android/src/com/mapswithme/maps/widget/placepage/PlacePageView.java @@ -91,9 +91,6 @@ public class PlacePageView extends NestedScrollViewClickFixed private boolean mIsDocked; private boolean mIsFloating; - // See refreshView(). - private boolean mIsAndroid11HackApplied = false; - // Preview. private ViewGroup mPreview; private Toolbar mToolbar; @@ -754,8 +751,7 @@ public class PlacePageView extends NestedScrollViewClickFixed // // Force re-layout explicitly on the next event loop after the first call to refreshView(). // - if (!mIsAndroid11HackApplied && Utils.isAndroid11OrLater()) { - mIsAndroid11HackApplied = true; + if (Utils.isAndroid11OrLater()) { post(() -> { mPreview.requestLayout(); mDetails.requestLayout();