am 9867f949: merge from open-source master

Merge commit '9867f9491cb0b61a7ddeae616b2fdd4dca709f63' into kraken

* commit '9867f9491cb0b61a7ddeae616b2fdd4dca709f63':
  Replaced Deprecated GestureDetector API Call
This commit is contained in:
The Android Open Source Project
2010-06-02 07:47:55 -07:00
committed by Android Git Automerger

View File

@@ -2614,7 +2614,7 @@ class EmulatorView extends View implements GestureDetector.OnGestureListener {
public EmulatorView(Context context) {
super(context);
commonConstructor();
commonConstructor(context);
}
public void register(TermKeyListener listener) {
@@ -2784,17 +2784,17 @@ class EmulatorView extends View implements GestureDetector.OnGestureListener {
context.obtainStyledAttributes(android.R.styleable.View);
initializeScrollbars(a);
a.recycle();
commonConstructor();
commonConstructor(context);
}
private void commonConstructor() {
private void commonConstructor(Context context) {
mTextRenderer = null;
mCursorPaint = new Paint();
mCursorPaint.setARGB(255,128,128,128);
mBackgroundPaint = new Paint();
mTopRow = 0;
mLeftColumn = 0;
mGestureDetector = new GestureDetector(this);
mGestureDetector = new GestureDetector(context, this, null);
mGestureDetector.setIsLongpressEnabled(false);
setVerticalScrollBarEnabled(true);
}