Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dddc2981 authored by Ricardo Cervera-Navarro's avatar Ricardo Cervera-Navarro Committed by Android Git Automerger
Browse files

am 1782e526: Merge "Revert "docs: Long press to dismiss fix by Wayne"" into lmp-docs

* commit '1782e526':
  Revert "docs: Long press to dismiss fix by Wayne"
parents f5aa6752 1782e526
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ For example:</p>
        android:id="@+id/dismiss_overlay"
        android:layout_height="match_parent"
        android:layout_width="match_parent"/>
&lt;/FrameLayout>
&lt;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
    &#64;Override
    public boolean dispatchTouchEvent(MotionEvent e) {
        return mDetector.onTouchEvent(e) || super.dispatchTouchEvent(e);
    public boolean onTouchEvent(MotionEvent ev) {
        return mDetector.onTouchEvent(ev) || super.onTouchEvent(ev);
    }
}
</pre>