codenameone / CodenameOne

Cross-platform framework for building truly native mobile apps with Java or Kotlin. Write Once Run Anywhere support for iOS, Android, Desktop & Web.

Home Page:https://www.codenameone.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide to developer implement it own educational relationale permission dialog in android side

DurankGts opened this issue · comments

commented

https://github.com/codenameone/CodenameOne/blob/master/Ports/Android/src/com/codename1/impl/android/AndroidImplementation.java

image

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.

commented

image

this the unneccesary space in your Hard code dialog

Use:

Dialog.setDefaultDialogPosition(BorderLayout.CENTER);
commented

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

commented

this method just resolve the height dialog content no the width dialog