diff options
author | Romain Guy <romainguy@android.com> | 2009-07-14 13:59:33 -0700 |
---|---|---|
committer | Romain Guy <romainguy@android.com> | 2009-07-14 14:50:31 -0700 |
commit | 045163ac16d5fba694a3b46d0cecb3d84863eaed (patch) | |
tree | fa31e96e39b2cd27360533a545e015bbf60ca7a4 /core/java/android/content/DialogInterface.java | |
parent | 3660c09500a4d01eb6a733b5f0b15545855f8fe8 (diff) | |
download | frameworks_base-045163ac16d5fba694a3b46d0cecb3d84863eaed.zip frameworks_base-045163ac16d5fba694a3b46d0cecb3d84863eaed.tar.gz frameworks_base-045163ac16d5fba694a3b46d0cecb3d84863eaed.tar.bz2 |
Fixes lock on Home. Adds a new API on Dialog to get a callback when the dialog
shows.
Diffstat (limited to 'core/java/android/content/DialogInterface.java')
-rw-r--r-- | core/java/android/content/DialogInterface.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/java/android/content/DialogInterface.java b/core/java/android/content/DialogInterface.java index 4afa294..9f1036e 100644 --- a/core/java/android/content/DialogInterface.java +++ b/core/java/android/content/DialogInterface.java @@ -92,6 +92,21 @@ 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 { + /** + * This method will be invoked when the dialog is shown. + * + * @param dialog The dialog that was shown will be passed into the + * method. + */ + public void onShow(DialogInterface dialog); + } + + /** * Interface used to allow the creator of a dialog to run some code when an * item on the dialog is clicked.. */ |