History log of /frameworks/base/core/java/android/app/Dialog.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a492c3a7b2c18426fd0cb4d017eacbc368195dc5 24-Aug-2012 Jeff Brown <jeffbrown@google.com> Initial draft of high-level multi-display APIs.

This patch introduces the ability to create a Context that
is bound to a Display. The context gets its configuration and
metrics from that display and is able to provide a WindowManager
that is bound to the display.

To make it easier to use, we also add a new kind of Dialog
called a Presentation. Presentation takes care of setting
up the context as needed and watches for significant changes
in the display configuration. If the display is removed,
then the presentation simply dismisses itself.

Change-Id: Idc54b4ec84b1ff91505cfb78910cf8cd09696d7d
/frameworks/base/core/java/android/app/Dialog.java
7f02dc5c9c48a01bec459b71ac73a6ad37b9e12c 27-Aug-2012 Adam Powell <adamp@google.com> Add setOnDismissListener to AlertDialog.Builder

Add documentation to setOnCancelListener to clarify that the cancel
event plus the events for the various choice buttons are not the
exhaustive set of ways the dialog can be dismissed, and that a dismiss
listener should be used if the app needs to cover all cases of
dismissal.

Change-Id: I9e9d6f90f6f9ccaeb2c697474ab353e2d78f37b9
/frameworks/base/core/java/android/app/Dialog.java
44bfdd88a74d5935a011bc8671cb075f2047655b 26-Jan-2012 Svetoslav Ganov <svetoslavganov@google.com> Dialog not dismissed when tearing down dialog fragment.

1. The dismiss implementaton in Dialog was posting a message
on the main thread to perform the real dismiss work. The
goal of this was to allow calling dismiss() from multiple
threads. The side effect of this is that when dialog fragment
is dismissed the dialog is not dimissed until the current
loop on the main thread is completed. However, during rotation
of the screen the current activity has to be restarted, hence
all fragments whould be removed. In the destruction process
the dialog grament requests from the dialog to dismiss but
since this is asynchromous, the code in
ActivityThread#handleDestroyActivity detects a leaking window
since the dialog window is still not removed and removes that
window. Now when the dialog removal message is processed on
the next loop we get an exception that the window has already
been removed. Now if Dialog#dismiss() is called from the
main thread the call goes right though otherwise a message is
posted.

bug:5911682

Change-Id: I449d6dd75a84c0ff29ea13dac7d163219cc38341
/frameworks/base/core/java/android/app/Dialog.java
05e1c3a6913e049c7972ac727f57b7d3bf8d8552 05-May-2012 Romain Guy <romainguy@google.com> Don't check whether dismiss() is called on the UI thread
Bug #6436642

An app invoking dismiss() during a draw pass could cause crashes.
This change makes the code simpler too.

Change-Id: Iba89a8522e23d02f87697cfeec6cc713a1462669
/frameworks/base/core/java/android/app/Dialog.java
f76a50ce8fdc6aea22cabc77b2977a1a15a79630 09-Mar-2012 Ken Wakasa <kwakasa@google.com> Fix obvious typos under frameworks/base/core

Change-Id: Ia5fc3db1bb51824e7523885553be926bcc42d736
/frameworks/base/core/java/android/app/Dialog.java
89fc3acd4bfb61c7b578f0c9e713d9ea819604e4 02-Nov-2011 Adam Powell <adamp@google.com> Bug 5513073 - IllegalArgumentException: View not attached to window
manager

Remove extra queued dialog dismiss messages when applicable. Log an
error if the app tries to dismiss a dialog when its window has been
destroyed.

Change-Id: Ice8383d4420c052e31fbbd9fcd25051f3bd9b58d
/frameworks/base/core/java/android/app/Dialog.java
cfe9aee72836b80b94465621374c2eff915e9a1b 01-Nov-2011 Adam Powell <adamp@google.com> Fix bug 5528574 - "View not attached to window manager" upon
orientation change when there is a dialog with ActionMode on

Fix a bug closing down active action modes as dialogs are closing.

Change-Id: I0d28e3b3845d5ed50fbb55b180dafa1b11957b81
/frameworks/base/core/java/android/app/Dialog.java
558459fe85f56f29a6ed6a4d0adb4a0bd6665884 14-Oct-2011 Joe Fernandez <joefernandez@google.com> docs: add developer guide cross-references, Project ACRE, Round 2

Change-Id: I39a534ae3a2a34b4dabc333a09961012ef911d3e
/frameworks/base/core/java/android/app/Dialog.java
c30d767628861b0bbea907824682e47732c820f9 30-Apr-2011 Conley Owens <cco3@android.com> am 1a846ab0: am b1578d85: Merge "Fix startSearch condition on Dialog, because pressing search key causes ANR popup. If search key is pressed on Dialog and there is no search item then do nothing. How to reproduce the issue: Settings > About phone > Legal information >

* commit '1a846ab089878a6b342c6bc3e8850fc2e0ef3080':
Fix startSearch condition on Dialog, because pressing search key causes ANR popup. If search key is pressed on Dialog and there is no search item then do nothing. How to reproduce the issue: Settings > About phone > Legal information > Google legal > Press search key > Touch list item or press back key > ANR popup is shown
06ca9977d41f0d3739a06e26171a2b1b142fcef4 15-Mar-2011 lge-aosp <lge-aosp@lge.com> Fix startSearch condition on Dialog, because pressing search key causes ANR popup.
If search key is pressed on Dialog and there is no search item then do nothing.
How to reproduce the issue:
Settings > About phone > Legal information > Google legal > Press search key > Touch list item or press back key > ANR popup is shown

Change-Id: I9c24d83ca3b7c20976bb7daebeff7fd694ce3a2f
/frameworks/base/core/java/android/app/Dialog.java
33bbfd2232ea9eaae9a9d87a05a95a430f09bd83 25-Feb-2011 Jeff Brown <jeffbrown@google.com> Add support for mouse hover and scroll wheel.

Dispatch ACTION_HOVER_MOVE and ACTION_SCROLL through the View
hierarchy as onGenericTouchEvent. Pointer events dispatched
this way are delivered to the view under the pointer. Non-pointer
events continue to be delivered to the focused view.

Added scroll wheel support to AbsListView, ScrollView,
HorizontalScrollView and WebView. Shift+VSCROLL is translated
to HSCROLL as appropriate.

Added logging of new pointer events in PointerLocationView.

Fixed a problem in EventHub when a USB device is removed that
resulted in a long stream of ENODEV errors being logged until INotify
noticed the device was gone.

Note that the new events are not supported by wallpapers at this time
because the wallpaper engine only delivers touch events.

Make all mouse buttons behave identically. (Effectively we only
support one button.)

Change-Id: I9ab445ffb63c813fcb07db6693987b02475f3756
/frameworks/base/core/java/android/app/Dialog.java
50efbed668a9410cdec51f7c8604fa44ed267fed 09-Feb-2011 Adam Powell <adamp@google.com> Fix bug 3345948 - ActionBar.show()/hide() shouldn't animate if called
before first layout

Enable/disable the action bar show/hide animation as part of the
activity/dialog lifecycle. This allows apps to set action bar
visibility state as the activity first becomes visible or returns to
visibility without the associated animation.

Change-Id: I85ff9268d2cb2c8fcd3364dd275597fe90529224
/frameworks/base/core/java/android/app/Dialog.java
e579b347529a642dc837c2fc37fb483fb7a17fc7 28-Jan-2011 Dianne Hackborn <hackbod@google.com> am 6a11185b: am c8c3021a: Merge "Fix issue #3398767: Need translucent holo theme" into honeycomb

* commit '6a11185b9293151cb3c12c296cf989ea0e7cb898':
Fix issue #3398767: Need translucent holo theme
e79b55482eb3f26d6d5b56dce40682dd68826f8c 28-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3398767: Need translucent holo theme

Change-Id: I2ce87798ff58315cb96968ab06e5a52da9f35ef8
/frameworks/base/core/java/android/app/Dialog.java
17d7cbc14c128c0e6d6a00d8d4e281c5e8075aa3 26-Jan-2011 Dianne Hackborn <hackbod@google.com> am a58552e0: am f95bd0fe: Merge "Argh forget to include my final part of the change." into honeycomb

* commit 'a58552e03de2f24aef735e94fcfab12a0078a3b3':
Argh forget to include my final part of the change.
f812fee071b9992872009b2dcd7969c7ce882a90 25-Jan-2011 Dianne Hackborn <hackbod@google.com> Argh forget to include my final part of the change.

Change-Id: I1e2711e1ecde0350047f1edef9a59947ff5749eb
/frameworks/base/core/java/android/app/Dialog.java
7fc5d4b8e7145413411da3320495388f09fab536 19-Jan-2011 Dianne Hackborn <hackbod@google.com> am 2ec5a716: am 36c84403: Merge "Fix issue #3362484: Can\'t dismiss activity picker by tapping outside dialog" into honeycomb

* commit '2ec5a7160b3d32887b2428edef7a751ee3700809':
Fix issue #3362484: Can't dismiss activity picker by tapping outside dialog
cfaf8878de83b6bb7a24aee3c240259f428e6e4a 18-Jan-2011 Dianne Hackborn <hackbod@google.com> Fix issue #3362484: Can't dismiss activity picker by tapping outside dialog

Change-Id: Idc2fe5a86c61e8f94fe9d902a0087a05f6f7918e
/frameworks/base/core/java/android/app/Dialog.java
cb1404e45639d20439d7700b06d57ca1a1aad1fa 16-Jan-2011 Jeff Brown <jeffbrown@google.com> Add joystick support to framework.

Change-Id: I95374436708752e1a9cff3f85c5b9bc3e0987961
/frameworks/base/core/java/android/app/Dialog.java
64da12ab1f472e01325b6c6d094153ac110eaf7b 05-Jan-2011 Jeff Brown <jeffbrown@google.com> Add dispatch key shortcut window callback.

Enables Activities and Dialogs to implement key shortcut behavior.
Useful for global key shortcuts that are not bound to the focused
view or to a menu.

Change-Id: If377d20b227ee1c5cac84c47c9630b2d77f67e2c
/frameworks/base/core/java/android/app/Dialog.java
8b4cac1f420d2e6d235511015a6ab65db5ebaca4 03-Jan-2011 Dianne Hackborn <hackbod@google.com> Again maybe fix issue #3169193...

...com.google.android.youtube: java.lang.NullPointerException at
com.google.android.youtube.async.UserAuthorizer$3.onCancel(UserAuthorizer.java:324)

Only perform one cancel callback for a particular start of the dialog.

Change-Id: Ib448fcae2489a63c9b63affdc518658447e90920
/frameworks/base/core/java/android/app/Dialog.java
114405e0eaf82b1f22e6989d939d5509ff1b7927 15-Dec-2010 Dianne Hackborn <hackbod@google.com> Fix Dialog generating multiple onCancel().

Issue #3169193: com.google.android.youtube: java.lang.NullPointerException
at com.google.android.youtube.async.UserAuthorizer$3.onCancel(UserAuthorizer.java:324)

A little protection against calling onCancel() after a dialog has been
dismissed.

Change-Id: I7a64c94703da012ce303308563e4a8ed3cb125d3
/frameworks/base/core/java/android/app/Dialog.java
8515ee846bd76aee86ec5ddfcc4dd1e626dd999c 30-Nov-2010 Adam Powell <adamp@google.com> Fix bug 3240444 - add OnMenuVisibilityListener for action bar.

Fix bug 3180015 - leaking window handles on configuration change for
action bar dropdown menus

Rename ActionBar.NavigationCallback to something more consistent with
the rest of the API.

Change-Id: Ic1fb4c07484c57a72649b30e27d220b18cda6cdf
/frameworks/base/core/java/android/app/Dialog.java
debf3bed9ea913ac55c80e1f9f7f33217054a943 16-Nov-2010 Adam Powell <adamp@google.com> Fix bug 2948913 - provide lifecycle notifications for action modes

Change-Id: I432e29a7bddb18bc32dfbe21a8ecd7d83158e3a0
/frameworks/base/core/java/android/app/Dialog.java
2fbf4de64f0ec5052201cea9519c44d5b1789a40 01-Oct-2010 Adam Powell <adamp@google.com> Holo theme progress and assets!

* Light and dark dialogs
* Checkboxes and radio buttons
* Toggle buttons

Warning! This is still a work in progress. This does not include final metrics.
Some assets (specifically dialogs) are currently misaligned.
/frameworks/base/core/java/android/app/Dialog.java
c49c17314d4b7f36e50a5b01edd6d4b13b940366 29-Sep-2010 Adam Powell <adamp@google.com> Added AlertDialog.Builder#getContext

Change-Id: Ic3033a4eff67f507aa39dacfc4c8984a9ee142c1
/frameworks/base/core/java/android/app/Dialog.java
c63806d852a550d82bbe6cadff8a2139d78ed559 24-Sep-2010 Adam Powell <adamp@google.com> Holo themes and assets in progress

Change-Id: Ic10480dc1c771d0ccd10f1d4014c945480fd6c0d
/frameworks/base/core/java/android/app/Dialog.java
49afa5bc100e5d4c069fea980dd6b09501f56397 23-Aug-2010 Chet Haase <chet@google.com> Add facilities for layout transitions

Change-Id: I5c73ce6c6ba3bc9e3b57fcfbbcab37d511db6132
/frameworks/base/core/java/android/app/Dialog.java
e67a9dc83d3045f28aa2e19e5643d1875ea26b87 18-Aug-2010 Adam Powell <adamp@google.com> Clean up some options menu/action bar menu handling for Dialogs.

Add Dialog#invalidateOptionsMenu so that dialogs hosting action bars
have a way to request a refresh of menu content.

Change-Id: I73aa22c2df1c5e60b94035e30af548f87073dbb9
/frameworks/base/core/java/android/app/Dialog.java
dec9dfd0f9f9ae23e4f126d765178fbd26a9eadb 10-Aug-2010 Adam Powell <adamp@google.com> Support ActionBar in Dialogs

Dialogs planning on using an ActionBar must have an appropriate
theme. (Later on this will likely be default.)

Change-Id: I7fbf5f76eed3d10765fddeaf211e4decb4e89f87
/frameworks/base/core/java/android/app/Dialog.java
6e34636749217654f43221885afb7a29bb5ca96a 23-Jul-2010 Adam Powell <adamp@google.com> Moved context modes into view, renamed to action modes

ContextualMode renamed to ActionMode. Adds a reference to the action
bar and reduces confusion around things named "Context".

Change-Id: Ia5098b1d0799a0ece0810c34e6696eda039fb005
/frameworks/base/core/java/android/app/Dialog.java
1bd7597b8cdaf39d1183077c463cb30596eb31b0 02-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I8333e295ba6b6ed8e7658ecf3fbf1ebea3537aeb
ef367529f9c7a538d74599b37b49ac309d0a8d8c 31-May-2010 Christian Mehlmauer <FireFart@gmail.com> Replaced raw string arguments for Context.getSystemService() with final Context variables

Change-Id: If5139a1526101292e5da557bfad3f4db80fb64a8
/frameworks/base/core/java/android/app/Dialog.java
7eec2bcf6fd6c0072d8523c459f305c178f83ee7 29-Mar-2010 Romain Guy <romainguy@google.com> Tame the monkey.
Bug #2547546

Change-Id: I2a41f53dbd71a166ddce70f3fbec24cfedaa514a
/frameworks/base/core/java/android/app/Dialog.java
08a4ac3999f54860fb242eae3f19e15583f8d681 16-Mar-2010 Romain Guy <romainguy@android.com> Dismiss a dialog if dimissed right after calling show().
Bug #2508607

Change-Id: Id1b3afcaabf700386f70a46bc2401154575149aa
/frameworks/base/core/java/android/app/Dialog.java
d2671e1fcf1d7f1b8e25a2615d514cf3c26b6a9c 12-Mar-2010 Romain Guy <romainguy@android.com> Preserve widgets on upgrade.
Bug #2464545

Change-Id: I802878af49dc4d98210fb8049df0bbdc49268d99
/frameworks/base/core/java/android/app/Dialog.java
7883c975dd0db021fa3a01226d6cb09c28764c98 02-Mar-2010 Romain Guy <romainguy@android.com> Prevent crash in Dialog.
Bug #2249637
/frameworks/base/core/java/android/app/Dialog.java
b8144a9c18f23c91b836736a2fcea30917153002 22-Feb-2010 Bjorn Bringert <bringert@android.com> Don't start global search from system dialogs

Also, set FLAG_ACTIVITY_NEW_TASK to allow launching
global search from non-activity contexts.

Fixes http://b/issue?id=2460991

Change-Id: I833d5b851f0127fb69165fbfc7d1ee190b320401
/frameworks/base/core/java/android/app/Dialog.java
479ae0a28099eb77299fe0f44d4dfabce3115fb6 04-Feb-2010 Amith Yamasani <yamasani@google.com> Cleanup of global search references in SearchDialog and SearchManager.
/frameworks/base/core/java/android/app/Dialog.java
130a8b71bbfb93c1cbe0642e7f2cb97322f899d1 15-Jan-2010 Ficus Kirkpatrick <ficus@android.com> Add Dialog.setOnShowListener() to the public API.
/frameworks/base/core/java/android/app/Dialog.java
980a938c1c9a6a5791a8240e5a1e6638ab28dc77 09-Jan-2010 Romain Guy <romainguy@android.com> Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
/frameworks/base/core/java/android/app/Dialog.java
83fe3f559249451706957b1a5f660b2b8272f114 13-Sep-2009 Dianne Hackborn <hackbod@google.com> Last big work on #1991910: Make swipes work with capacitive keys

This takes care of allowing us to cancel the back button. The
back button is a bear because it is strewn all over the place --
everywhere you can close something, there is some code looking
for the back button that now needs to deal with being canceled.

The main things changed are activity (of course), dialog,
input method, search dialog. There are some other misc places
in the framework (and some I missed here that I will get in a
second pass).

To facility all of this, the key dispatching APIs now provide
a lot more support for dealing with looking for cancelled keys,
and incidentally also provide an actual API for catching long
key presses. This also helped clean up the code in PhoneWindow
where it deals with all of the combinations of key pressed and
releases. (And also allows people to override
Activity.onKeyLongPress() to provide a different long press
action for a standard key like search.)

And while I was doing this, I reworked how we detect long
presses by having this be part of the key event delivered by
the window manager. This should greatly reduce (hopefully
outright eliminate) the problems with long presses being
mis-detected when an application is being slow.

Change-Id: Ia19066b8d588d573df3eee6d96e1c90fdc19f57d
/frameworks/base/core/java/android/app/Dialog.java
7bafed8623d6835d0c9092ac2b852bb244a13fcf 04-Sep-2009 Karl Rosaen <krosaen@android.com> Do a better job at finding the activity associated with a dialog when triggering search.

It first looks to see if there is an activity that is managing the dialog, and if not,
follows the context / contextwrapper chain to find an activity if possible.

Fixes http://b/issue?id=2064772.
/frameworks/base/core/java/android/app/Dialog.java
3be63c09309b21c01b535271625d4c39045690e5 21-Aug-2009 Dianne Hackborn <hackbod@google.com> Infrastructure for supporting wallpaper previews.

Various things that will allow us to show previews of wallpapers.
Also some fixes to animations across wallpapers.
/frameworks/base/core/java/android/app/Dialog.java
ec0a12cf199659a749ff1fe7b788626eddc095eb 22-Jul-2009 Karl Rosaen <krosaen@google.com> Don't start search from a dialog if there is no activity associated with
the search manager at that point.

Still works:
- hitting search when a managed dialog of an app is showing will dismiss
the dialog and start in-app search (if it supports it), falling back
on global search
- hitting search when a dialog of an app (not managed by the activity) will
dismiss the dialog and start global search
- hitting search when a system dialog is showing will just dismiss the dialog.
/frameworks/base/core/java/android/app/Dialog.java
53d24af774ad943ff26ef529c949f9c433806421 14-Jul-2009 Karl Rosaen <krosaen@google.com> Respect onSearchRequested in Dialog and actually launch search. Also dismiss self.
/frameworks/base/core/java/android/app/Dialog.java
045163ac16d5fba694a3b46d0cecb3d84863eaed 14-Jul-2009 Romain Guy <romainguy@android.com> Fixes lock on Home. Adds a new API on Dialog to get a callback when the dialog
shows.
/frameworks/base/core/java/android/app/Dialog.java
6de4aed1c67263269f83f579ec5b06263d173ef3 08-Jul-2009 Romain Guy <romainguy@android.com> Fixes #1933428. Call onPrepareDialog() on managed dialogs after their onCreate() is finished.
/frameworks/base/core/java/android/app/Dialog.java
75986cf9bc57ef11ad70f36fb77fbbf5d63af6ec 15-May-2009 svetoslavganov <svetoslavganov@google.com> Accessibility feature - framework changes (replacing 698, 699, 700, 701 and merging with the latest Donut)
/frameworks/base/core/java/android/app/Dialog.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/app/Dialog.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/app/Dialog.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/core/java/android/app/Dialog.java
9266c558bf1d21ff647525ff99f7dadbca417309 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
/frameworks/base/core/java/android/app/Dialog.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/app/Dialog.java