mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
[Android] Fixes inset handling
Signed-off-by: hemanggs <hemangmanhas@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
e321b1c5be
commit
29bbbb13ee
@@ -484,7 +484,8 @@ public class MapButtonsController extends Fragment
|
||||
.build();
|
||||
ViewCompat.setOnApplyWindowInsetsListener(mFrame, insetsListener);
|
||||
// Fixes insets on older Androids and with a search opened via API on all Androids.
|
||||
mFrame.post(() -> ViewCompat.requestApplyInsets(mFrame));
|
||||
if (mFrame.hasWindowFocus())
|
||||
ViewCompat.requestApplyInsets(mFrame);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user