diff options
| author | Will Haldean Brown <haldean@google.com> | 2014-03-04 15:25:43 -0800 |
|---|---|---|
| committer | Will Haldean Brown <haldean@google.com> | 2014-03-04 15:25:43 -0800 |
| commit | 568628dc2cb92b3ec3a87cae9de3203fbdc5968c (patch) | |
| tree | 2e21177592b10e70c2fef44fd2578813fb1c819b /core/java/android/app/Dialog.java | |
| parent | 0a5500a8fc6040e556f25c1235ec010e1c74866d (diff) | |
| parent | 2faf28cf85232d9eee0926c05c941c53381d4161 (diff) | |
Manually merge commit '2faf28cf' into master
Original commit message:
Add swipe-to-dismiss support to PhoneWindow.
This adds a new window feature -- FEATURE_SWIPE_TO_DISMISS -- and a
theme attribute to activate that feature. When the feature is
activated, a SwipeDismissLayout is inflated as the DecorView layout.
SwipeDismissLayout intercepts touch events and steals ones that are
large swipes to the right if its children don't. PhoneWindow
registers handlers that listen for these swipe events, translate the
window when necessary, and finish the activity at the end of the
gesture.
Conflicts:
core/java/android/view/Window.java
core/res/res/values/attrs.xml
Change-Id: I943290b436864ca4a1bd401b88d696e08c921cdd
Diffstat (limited to 'core/java/android/app/Dialog.java')
| -rw-r--r-- | core/java/android/app/Dialog.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/app/Dialog.java b/core/java/android/app/Dialog.java index 255925493755..fb96d8d4d07d 100644 --- a/core/java/android/app/Dialog.java +++ b/core/java/android/app/Dialog.java @@ -707,6 +707,10 @@ public class Dialog implements DialogInterface, Window.Callback, public void onDetachedFromWindow() { } + + public void onWindowDismissed() { + dismiss(); + } /** * Called to process key events. You can override this to intercept all |
