[Android] Fixes inset handling

Signed-off-by: hemanggs <hemangmanhas@gmail.com>
This commit is contained in:
hemanggs
2025-06-18 17:48:59 +05:30
committed by Konstantin Pastbin
parent e321b1c5be
commit 29bbbb13ee

View File

@@ -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