am 8242ae16: am dddc2981: am 1782e526: Merge "Revert "docs: Long press to dismiss fix by Wayne"" into lmp-docs
* commit '8242ae16b6f0f293ececb75228fb1364061171d0': Revert "docs: Long press to dismiss fix by Wayne"
This commit is contained in:
committed by
Android Git Automerger
commit
53966f6268
@@ -67,7 +67,7 @@ For example:</p>
|
|||||||
android:id="@+id/dismiss_overlay"
|
android:id="@+id/dismiss_overlay"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_width="match_parent"/>
|
android:layout_width="match_parent"/>
|
||||||
</FrameLayout>
|
<FrameLayout>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>In your activity, obtain the <code>DismissOverlayView</code> element and set some introductory
|
<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
|
// Capture long presses
|
||||||
@Override
|
@Override
|
||||||
public boolean dispatchTouchEvent(MotionEvent e) {
|
public boolean onTouchEvent(MotionEvent ev) {
|
||||||
return mDetector.onTouchEvent(e) || super.dispatchTouchEvent(e);
|
return mDetector.onTouchEvent(ev) || super.onTouchEvent(ev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
|
|||||||
Reference in New Issue
Block a user