summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2014-09-03 18:31:47 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-09-03 18:31:47 +0000
commit94b88e7103b0ce7a1bb1f79156b5fdc07f1c90b4 (patch)
tree79281ede638065e9c1d0ac8aefd32b0065c93758 /core
parent7f6fa2a1cd7db974aaea9f40d2f98aa9b8fa7abd (diff)
parenta8a8ff000b2902eb4e187e62be39fd9535c6c839 (diff)
downloadframeworks_base-94b88e7103b0ce7a1bb1f79156b5fdc07f1c90b4.zip
frameworks_base-94b88e7103b0ce7a1bb1f79156b5fdc07f1c90b4.tar.gz
frameworks_base-94b88e7103b0ce7a1bb1f79156b5fdc07f1c90b4.tar.bz2
Merge "Remove partial support for hotspot changes on focus movement" into lmp-dev
Diffstat (limited to 'core')
-rw-r--r--core/java/android/view/View.java27
1 files changed, 0 insertions, 27 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index fce6f0b..21e7c6b 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -4908,36 +4908,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
}
onFocusChanged(true, direction, previouslyFocusedRect);
- manageFocusHotspot(true, oldFocus);
refreshDrawableState();
}
}
/**
- * Forwards focus information to the background drawable, if necessary. When
- * the view is gaining focus, <code>v</code> is the previous focus holder.
- * When the view is losing focus, <code>v</code> is the next focus holder.
- *
- * @param focused whether this view is focused
- * @param v previous or the next focus holder, or null if none
- */
- private void manageFocusHotspot(boolean focused, View v) {
- final Rect r = new Rect();
- if (v != null && mAttachInfo != null) {
- v.getHotspotBounds(r);
- final int[] location = mAttachInfo.mTmpLocation;
- getLocationOnScreen(location);
- r.offset(-location[0], -location[1]);
- } else {
- r.set(0, 0, mRight - mLeft, mBottom - mTop);
- }
-
- final float x = r.exactCenterX();
- final float y = r.exactCenterY();
- drawableHotspotChanged(x, y);
- }
-
- /**
* Populates <code>outRect</code> with the hotspot bounds. By default,
* the hotspot bounds are identical to the screen bounds.
*
@@ -5060,8 +5035,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
}
onFocusChanged(false, 0, null);
-
- manageFocusHotspot(false, focused);
refreshDrawableState();
if (propagate && (!refocus || !rootViewRequestFocus())) {