diff options
author | Ricardo Cervera <rcervera@google.com> | 2014-12-02 13:08:10 -0800 |
---|---|---|
committer | Ricardo Cervera <rcervera@google.com> | 2014-12-02 13:09:45 -0800 |
commit | 6ee2ca2f1e24d27c7a1e2430ad0272ef9f921a4a (patch) | |
tree | e5d793fdd03a54fbed7fa341929fa43204103973 /docs | |
parent | 64f49162460eaddf49f9d56c5dc6a01f472e790c (diff) | |
download | frameworks_base-6ee2ca2f1e24d27c7a1e2430ad0272ef9f921a4a.zip frameworks_base-6ee2ca2f1e24d27c7a1e2430ad0272ef9f921a4a.tar.gz frameworks_base-6ee2ca2f1e24d27c7a1e2430ad0272ef9f921a4a.tar.bz2 |
docs: Long press to dismiss fix by Wayne
Bug: 17924105
Change-Id: Ifbc26b923771e7389e4df6abe9005bc3f0269c1e
Diffstat (limited to 'docs')
-rw-r--r-- | docs/html/training/wearables/ui/exit.jd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/html/training/wearables/ui/exit.jd b/docs/html/training/wearables/ui/exit.jd index 84e1e45..6b205a5 100644 --- a/docs/html/training/wearables/ui/exit.jd +++ b/docs/html/training/wearables/ui/exit.jd @@ -67,7 +67,7 @@ For example:</p> android:id="@+id/dismiss_overlay" android:layout_height="match_parent" android:layout_width="match_parent"/> -<FrameLayout> +</FrameLayout> </pre> <p>In your activity, obtain the <code>DismissOverlayView</code> element and set some introductory @@ -100,8 +100,8 @@ public class WearActivity extends Activity { // Capture long presses @Override - public boolean onTouchEvent(MotionEvent ev) { - return mDetector.onTouchEvent(ev) || super.onTouchEvent(ev); + public boolean dispatchTouchEvent(MotionEvent e) { + return mDetector.onTouchEvent(e) || super.dispatchTouchEvent(e); } } </pre> |