forked from organicmaps/organicmaps
[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:
parent
33b5ecb3f9
commit
41a117ef23
1 changed files with 1 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue