Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 130a8b71 authored by Ficus Kirkpatrick's avatar Ficus Kirkpatrick
Browse files

Add Dialog.setOnShowListener() to the public API.

parent 7c44220d
Loading
Loading
Loading
Loading
+34 −0
Original line number Diff line number Diff line
@@ -20739,6 +20739,19 @@
<parameter name="onKeyListener" type="android.content.DialogInterface.OnKeyListener">
</parameter>
</method>
<method name="setOnShowListener"
 return="void"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="listener" type="android.content.DialogInterface.OnShowListener">
</parameter>
</method>
<method name="setOwnerActivity"
 return="void"
 abstract="false"
@@ -34002,6 +34015,27 @@
</parameter>
</method>
</interface>
<interface name="DialogInterface.OnShowListener"
 abstract="true"
 static="true"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<method name="onShow"
 return="void"
 abstract="true"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="dialog" type="android.content.DialogInterface">
</parameter>
</method>
</interface>
<class name="Entity"
 extends="java.lang.Object"
 abstract="false"
+1 −2
Original line number Diff line number Diff line
@@ -995,8 +995,7 @@ public class Dialog implements DialogInterface, Window.Callback,

    /**
     * Sets a listener to be invoked when the dialog is shown.
     *
     * @hide Pending API council approval
     * @param listener The {@link DialogInterface.OnShowListener} to use.
     */
    public void setOnShowListener(OnShowListener listener) {
        if (listener != null) {
+0 −1
Original line number Diff line number Diff line
@@ -94,7 +94,6 @@ public interface DialogInterface {
    /**
     * Interface used to allow the creator of a dialog to run some code when the
     * dialog is shown.
     * @hide Pending API council approval
     */
    interface OnShowListener {
        /**