[android] Enable Android 11 hack unconditionally

See 58dcdc "Add a workaround for broken PlacePageView after Search/Edit"

Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
This commit is contained in:
Roman Tsisyk 2021-10-15 09:09:50 +03:00
parent 33b5ecb3f9
commit 41a117ef23

View file

@ -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();