* commit '8c71df8dd89c68128e709eab60da8105772d6194': docs: Long press to dismiss fix by Wayne
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user