mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
[android] Adds delay to inset application on API 29 and lower
Signed-off-by: hemanggs <hemangmanhas@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
bdcee82a13
commit
7b600efd5c
@@ -482,6 +482,9 @@ public class MapButtonsController extends Fragment
|
|||||||
.build();
|
.build();
|
||||||
ViewCompat.setOnApplyWindowInsetsListener(mFrame, insetsListener);
|
ViewCompat.setOnApplyWindowInsetsListener(mFrame, insetsListener);
|
||||||
// Fixes insets on older Androids and with a search opened via API on all Androids.
|
// Fixes insets on older Androids and with a search opened via API on all Androids.
|
||||||
|
if (android.os.Build.VERSION.SDK_INT <= android.os.Build.VERSION_CODES.Q)
|
||||||
|
mFrame.postDelayed(() -> ViewCompat.requestApplyInsets(mFrame), 1250);
|
||||||
|
else
|
||||||
mFrame.post(() -> ViewCompat.requestApplyInsets(mFrame));
|
mFrame.post(() -> ViewCompat.requestApplyInsets(mFrame));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user