You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MaterialAlertDialogBuilder] The background inset used by MaterialAlertDialog prevents it from panning up sufficiently when keyboard opens to prevent overlap #4273
Description: When using the MaterialAlertDialogBuilder to create a popup of sufficient size with an edit text, as soon as the edit text gains focus and the softboard appears, the popup does not slide up sufficiently to prevent an overlay but stops a significant amount of space from the top.
Expected behavior:
The popup should slide as far as it needs to to prevent overlap, as does a popup created with normal AlertDialog:
Source code: The issue is caused by the backgroundInset defined in MaterialAlertDialog.MaterialComponents.
Overriding the alertDialogStyle of the MaterialAlertDialog with a style that overrides those insets with 0 fixes the issue. However, this is still a bug because the top and bottom distance to the edges should be abandoned if space requires to.
The method loading them is