CodenameOne
CodenameOne copied to clipboard
Provide to developer implement it own educational relationale permission dialog in android side
https://github.com/codenameone/CodenameOne/blob/master/Ports/Android/src/com/codename1/impl/android/AndroidImplementation.java
you must permit that the developer implement it's custom dialog because your dialog don't adapt to the content and all the time occupy al whole screen when isn't necessary.
all your api use that method when requesting permission in android side. I sugget that you implement a call back in that part of your code for that the developer implement it own educational relationale dialog.
this the unneccesary space in your Hard code dialog
Use:
Dialog.setDefaultDialogPosition(BorderLayout.CENTER);
this a simple solution to solve in this moment but in understand that you must implement a call back in codenameone side to show the educational relationale dialog. other issue is that you have hardcode the permission descripction in your source code
this method just resolve the height dialog content no the width dialog