Repository navigation
Android importer on iOS: AlertDialog buttons missing and dialog content overlapping safe area #6259
Unanswered
fckdsko-apps
asked this question in
Q&A
Replies: 3 comments 1 reply
|
Looking into this. |
1 reply
|
This is fixed in the current version. |
0 replies
|
Amazing. Thank you!
…On Fri, Nov 20, 2026, 7:58 PM Shai Almog ***@***.***> wrote:
This is fixed in the current version.
—
Reply to this email directly, view it on GitHub
<#6259?email_source=notifications&email_token=CJSF27OYMA2F4OZBQARXUYT52EHFZA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJXHA4DQNBUUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVRTG633UMVZF6Y3MNFRWW#discussioncomment-19788844>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/CJSF27NEPPB6K5224KJ4S7352EHFZAVCNFSNUABHKJSXA33TNF2G64TZHMZTEOJXGM2DMNZ3IRUXGY3VONZWS33OHMYTCMZSGYYDEONBOYBA>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/CJSF27JSDK2CDYML6KO6ZTT52EHFZA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJXHA4DQNBUUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVJTG633UMVZF62LPOM>
and Android
<https://github.com/notifications/mobile/android/CJSF27NCHBW7N2SMNKNIQF352EHFZA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJXHA4DQNBUUZZGKYLTN5XKMYLVORUG64VFMV3GK3TUVZTG633UMVZF6YLOMRZG62LE>.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
I'm porting an existing Android application to iOS using Codename One's Android compatibility importer.
The application runs in an iOS simulator, and most of the interface is functional. However, certain Android
AlertDialogwindows display their titles and message text without displaying their action buttons.This prevents users from completing some workflows.
Example: Guided tour blocked
The application displays an
AlertDialogtitled "Use a training area?"The original Android implementation uses:
setTitle("Use a training area?")setMessage(...)setPositiveButton("Continue", ...)setNegativeButton("Cancel tour"/"Cancel", ...)create()followed byshow()The dialog displays its title and the complete explanatory text, but neither action button is visible.
Attempting to scroll or swipe within the dialog using VibeView did not reveal the buttons.
The user therefore cannot continue the guided tour.
Original Android source:
https://github.com/AVNTRMAPS/RockMapp/blob/19827581fcef83fd5cd84cfbbae0043af7c03b18/app/src/main/java/com/rockmap/app/MainActivity.java#L6356-L6375
Method:
showTrainingLocationConsent()Related layout behavior
Other dialogs containing longer diagnostic readouts also appear to extend into the iPhone's status-bar area.
Their action buttons are not visible in the captured simulator screenshots either.
There have also been instances of partially clipped interface controls elsewhere in the application, although I haven't isolated a minimal reproduction for those yet.
Environment
19827581fcef83fd5cd84cfbbae0043af7c03b18The issue has not yet been tested on a physical iPhone.
Investigation so far
The application's original Android code defines both dialog buttons correctly.
I also inspected Codename One's Android compatibility implementation:
https://github.com/codenameone/CodenameOne/blob/master/maven/android-compat/src/main/java/android/app/AlertDialog.java
The implementation appears to construct a button bar when positive, negative, or neutral button text is supplied.
I also noticed that the compatibility implementation intentionally returns zero Android window insets because the activity is already positioned within the platform's safe area.
I haven't established whether the problem originates in dialog measurement, rendering, safe-area positioning, or another part of the compatibility layer.
I have not modified the Android application to work around the issue.
Questions
AlertDialog.Builderin Android applications imported to iOS?I'd prefer to resolve this using the supported Android compatibility implementation without introducing application-specific workarounds.
Screenshots of the affected dialogs are attached.
All reactions