diff options
author | Adam Powell <adamp@google.com> | 2014-05-05 18:14:56 -0700 |
---|---|---|
committer | Adam Powell <adamp@google.com> | 2014-05-05 18:20:47 -0700 |
commit | 117b695222135cc684e891d4126116b97a64bc9e (patch) | |
tree | 6c8648f07e02440a7ac7899c54dee8502809906b /policy | |
parent | e88097bd00d5710bbfb6c24a934743c8d6cac9cf (diff) | |
download | frameworks_base-117b695222135cc684e891d4126116b97a64bc9e.zip frameworks_base-117b695222135cc684e891d4126116b97a64bc9e.tar.gz frameworks_base-117b695222135cc684e891d4126116b97a64bc9e.tar.bz2 |
onWindowDismissed API cleanup
Move the window swipe to dismiss plumbing off of Window.Callback into
its own internal interface implemented by Activity and Dialog. Make it
internal API instead of public. Apps should control this via the
window feature setting.
Change-Id: I64cd237fa7eab08719b2c34e31dac7d34f02563a
Diffstat (limited to 'policy')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/PhoneWindow.java | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindow.java b/policy/src/com/android/internal/policy/impl/PhoneWindow.java index fb4466d..78020e9 100644 --- a/policy/src/com/android/internal/policy/impl/PhoneWindow.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindow.java @@ -3429,15 +3429,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback { swipeDismiss.setOnDismissedListener(new SwipeDismissLayout.OnDismissedListener() { @Override public void onDismissed(SwipeDismissLayout layout) { - Callback cb = getCallback(); - if (cb != null) { - try { - cb.onWindowDismissed(); - } catch (AbstractMethodError e) { - Log.e(TAG, "onWindowDismissed not implemented in " + - cb.getClass().getSimpleName(), e); - } - } + dispatchOnWindowDismissed(); } }); swipeDismiss.setOnSwipeProgressChangedListener( |