From f0c7eb8d857ed4dd68add8528dc798bfcbae832b Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Mon, 5 May 2014 14:56:38 -0700 Subject: Move more Dialpad resources to ContactsCommon Change-Id: Ifc0c2d9cbccc0e972a23edc045fef57c63c9723b --- .../android/dialer/dialpad/DialpadFragment.java | 2 + .../android/dialer/dialpad/DialpadKeyButton.java | 229 --------------------- src/com/android/dialer/dialpad/DialpadView.java | 158 -------------- src/com/android/dialer/dialpad/DigitsEditText.java | 58 ------ 4 files changed, 2 insertions(+), 445 deletions(-) delete mode 100644 src/com/android/dialer/dialpad/DialpadKeyButton.java delete mode 100644 src/com/android/dialer/dialpad/DialpadView.java delete mode 100644 src/com/android/dialer/dialpad/DigitsEditText.java (limited to 'src/com') diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index 5de9ffdce..4f992eb03 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -70,6 +70,8 @@ import android.widget.TextView; import com.android.contacts.common.CallUtil; import com.android.contacts.common.GeoUtil; +import com.android.contacts.common.dialpad.DialpadKeyButton; +import com.android.contacts.common.dialpad.DialpadView; import com.android.contacts.common.util.PhoneNumberFormatter; import com.android.contacts.common.util.StopWatch; import com.android.dialer.NeededForReflection; diff --git a/src/com/android/dialer/dialpad/DialpadKeyButton.java b/src/com/android/dialer/dialpad/DialpadKeyButton.java deleted file mode 100644 index 1d5104c06..000000000 --- a/src/com/android/dialer/dialpad/DialpadKeyButton.java +++ /dev/null @@ -1,229 +0,0 @@ -/* - * Copyright (C) 2012 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.android.dialer.dialpad; - -import android.content.Context; -import android.graphics.Rect; -import android.os.Bundle; -import android.util.AttributeSet; -import android.view.MotionEvent; -import android.view.View; -import android.view.ViewConfiguration; -import android.view.accessibility.AccessibilityEvent; -import android.view.accessibility.AccessibilityManager; -import android.view.accessibility.AccessibilityNodeInfo; -import android.widget.FrameLayout; - -/** - * Custom class for dialpad buttons. - *

- * When touch exploration mode is enabled for accessibility, this class - * implements the lift-to-type interaction model: - *