summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorGilles Debunne <debunne@google.com>2010-08-17 20:01:42 -0700
committerGilles Debunne <debunne@google.com>2010-08-19 15:55:02 -0700
commitb0d6ba1ec4f71b96cab7d1ff62b846d5cf162c4f (patch)
tree1c21c8af559a1a7206a56996aa7ae10fd0ba29ef /graphics
parentc4554b9a0885ac3713575e91d8d33c5670b52322 (diff)
downloadframeworks_base-b0d6ba1ec4f71b96cab7d1ff62b846d5cf162c4f.zip
frameworks_base-b0d6ba1ec4f71b96cab7d1ff62b846d5cf162c4f.tar.gz
frameworks_base-b0d6ba1ec4f71b96cab7d1ff62b846d5cf162c4f.tar.bz2
Text selection without trackball.
Backported from HC. Squashed commit of the following: commit af214a595c7a9fdd11a2dc384f7d4665abf751c0 Fixes in TextView's selection. commit eb9fd59ebe6500a66c2003d46b5802299970ae8d TextView with Selection Contextual Mode commit 4c4c338ef355b369ce4b57d6c6fba7ee8f9dddf4 Cosmetic changes around TextView. commit d4b4b054e87480d984ad18766f5e76553e3080d8 Double and one and a half tap removed from TextView. commit 897c2847ba1fca8ef01eadadd1bc3de007af3ee5 Selection handlers in TextView commit 832be74a5394649e28927484d9a86c6d53b430e7 New cursor controller in TextViews. Change-Id: I01cc64736e2abea605317ee53907a1713617fc17
Diffstat (limited to 'graphics')
-rw-r--r--graphics/java/android/graphics/Rect.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/graphics/java/android/graphics/Rect.java b/graphics/java/android/graphics/Rect.java
index 98ffb8b..7830224 100644
--- a/graphics/java/android/graphics/Rect.java
+++ b/graphics/java/android/graphics/Rect.java
@@ -75,6 +75,7 @@ public final class Rect implements Parcelable {
bottom = r.bottom;
}
+ @Override
public boolean equals(Object obj) {
Rect r = (Rect) obj;
if (r != null) {
@@ -84,6 +85,7 @@ public final class Rect implements Parcelable {
return false;
}
+ @Override
public String toString() {
StringBuilder sb = new StringBuilder(32);
sb.append("Rect("); sb.append(left); sb.append(", ");
@@ -351,7 +353,7 @@ public final class Rect implements Parcelable {
* rectangle, return true and set this rectangle to that intersection,
* otherwise return false and do not change this rectangle. No check is
* performed to see if either rectangle is empty. Note: To just test for
- * intersection, use intersects()
+ * intersection, use {@link #intersects(Rect, Rect)}.
*
* @param left The left side of the rectangle being intersected with this
* rectangle
@@ -445,7 +447,7 @@ public final class Rect implements Parcelable {
/**
* Returns true iff the two specified rectangles intersect. In no event are
* either of the rectangles modified. To record the intersection,
- * use intersect() or setIntersect().
+ * use {@link #intersect(Rect)} or {@link #setIntersect(Rect, Rect)}.
*
* @param a The first rectangle being tested for intersection
* @param b The second rectangle being tested for intersection