Assigned
Status Update
Comments
yb...@google.com <yb...@google.com>
ki...@gmail.com <ki...@gmail.com> #2
Forgot to note the environment.
This crash occurs on only API 21.
This crash occurs on only API 21.
Description
Last alert dialog disappears when edittext is pressed in nested alert dialog.
The conditions are as follows.
- Open Alert Dialog again from Alert Dialog.
- The Alert Dialog floating on top has an Edittext view.
- Alert Dialog uses the code below.
alert.getWindow().setType(WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY);
If you don't use TYPE_APPLICATION_OVERLAY, no problem.
However, the TYPE_APPLICATION_OVERLAY code must be used as the service needs to open the Alert Dialog.
The issue below is only reproduced on Galaxy S22 devices, Android 13.
On Galaxy S22, Android 12 there was no problem.
Android studio emulator Pixel 6 Pro no problem.
Attach a sample app.