Merge "Cosmetic changes around TextView."
This commit is contained in:
committed by
Android (Google) Code Review
commit
8bfc798dc2
@@ -417,8 +417,8 @@ public class Selection {
|
||||
}
|
||||
}
|
||||
|
||||
private static final class START implements NoCopySpan { };
|
||||
private static final class END implements NoCopySpan { };
|
||||
private static final class START implements NoCopySpan { }
|
||||
private static final class END implements NoCopySpan { }
|
||||
|
||||
/*
|
||||
* Public constants
|
||||
|
||||
@@ -54,7 +54,7 @@ public abstract class AbsSavedState implements Parcelable {
|
||||
*/
|
||||
protected AbsSavedState(Parcel source) {
|
||||
// FIXME need class loader
|
||||
Parcelable superState = (Parcelable) source.readParcelable(null);
|
||||
Parcelable superState = source.readParcelable(null);
|
||||
|
||||
mSuperState = superState != null ? superState : EMPTY_STATE;
|
||||
}
|
||||
@@ -75,7 +75,7 @@ public abstract class AbsSavedState implements Parcelable {
|
||||
= new Parcelable.Creator<AbsSavedState>() {
|
||||
|
||||
public AbsSavedState createFromParcel(Parcel in) {
|
||||
Parcelable superState = (Parcelable) in.readParcelable(null);
|
||||
Parcelable superState = in.readParcelable(null);
|
||||
if (superState != null) {
|
||||
throw new IllegalStateException("superState must be null");
|
||||
}
|
||||
|
||||
@@ -722,7 +722,7 @@ public final class MotionEvent implements Parcelable {
|
||||
*
|
||||
* @param pointerId The identifier of the pointer to be found.
|
||||
* @return Returns either the index of the pointer (for use with
|
||||
* {@link #getX(int) et al.), or -1 if there is no data available for
|
||||
* {@link #getX(int)} et al.), or -1 if there is no data available for
|
||||
* that pointer identifier.
|
||||
*/
|
||||
public final int findPointerIndex(int pointerId) {
|
||||
|
||||
@@ -7709,14 +7709,14 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
mOffsetX = (bounds.left + bounds.right) / 2.0f - x;
|
||||
mOffsetY = bounds.top - mCursorControllerVerticalOffset - y;
|
||||
|
||||
mOnDownTimerStart = System.currentTimeMillis();
|
||||
mOnDownTimerStart = event.getEventTime();
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case MotionEvent.ACTION_UP : {
|
||||
int time = (int) (System.currentTimeMillis() - mOnDownTimerStart);
|
||||
int time = (int) (event.getEventTime() - mOnDownTimerStart);
|
||||
|
||||
if (time <= ViewConfiguration.getTapTimeout()) {
|
||||
// A tap on the controller is not grabbed, move the cursor instead
|
||||
|
||||
Reference in New Issue
Block a user