commit | 7d9af5ae762c59e879a86e77dcb330856774bc09 | [log] [tgz] |
---|---|---|
author | Dianne Hackborn <hackbod@google.com> | Thu Mar 18 23:40:21 2010 -0700 |
committer | Dianne Hackborn <hackbod@google.com> | Fri Mar 19 14:01:17 2010 -0700 |
tree | aa53ca79b286e6a874a70540a3e92d620884ef91 | |
parent | b58fd82261efee1131eee7dcf3d66f98b11b5d24 [diff] [blame] |
Fix issue #2512131: Trackball goes up when moving Change-Id: Ib403de88f24bc1b6e5417732e3b69f89a5160bbc
diff --git a/core/java/com/android/internal/widget/PointerLocationView.java b/core/java/com/android/internal/widget/PointerLocationView.java index ee2fc12..f487a16 100644 --- a/core/java/com/android/internal/widget/PointerLocationView.java +++ b/core/java/com/android/internal/widget/PointerLocationView.java
@@ -60,6 +60,7 @@ public PointerLocationView(Context c) { super(c); + setFocusable(true); mVC = ViewConfiguration.get(c); mTextPaint = new Paint(); mTextPaint.setAntiAlias(true); @@ -350,4 +351,11 @@ addTouchEvent(event); return true; } + + @Override + public boolean onTrackballEvent(MotionEvent event) { + Log.i("Pointer", "Trackball: " + event); + return super.onTrackballEvent(event); + } + }