removing dialpad reliance on the legacy support library

This commit is contained in:
Adam Brown 2022-09-16 11:41:34 +01:00
parent abd70d953b
commit e83fa9c81f
3 changed files with 2 additions and 11 deletions

View File

@ -19,10 +19,6 @@ android {
}
}
dependencies {
implementation "com.android.support:appcompat-v7:28.0.0"
}
afterEvaluate {
tasks.findAll { it.name.startsWith("lint") }.each {
it.enabled = false

View File

@ -23,8 +23,6 @@ import android.graphics.Rect;
import android.util.AttributeSet;
import android.widget.TextView;
import androidx.appcompat.widget.AppCompatTextView;
/**
* This is a custom text view intended only for rendering the numerals (and star and pound) on the
* dialpad. TextView has built in top/bottom padding to help account for ascenders/descenders.
@ -33,7 +31,7 @@ import androidx.appcompat.widget.AppCompatTextView;
* to a larger default, for the dialpad we use this class to more precisely render characters
* according to the precise amount of space they need.
*/
public class DialpadTextView extends AppCompatTextView {
public class DialpadTextView extends TextView {
private Rect mTextBounds = new Rect();
private String mTextStr;

View File

@ -20,14 +20,11 @@ import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.widget.EditText;
import androidx.appcompat.widget.AppCompatEditText;
import com.android.dialer.dialpadview.R;
import com.android.dialer.util.ViewUtil;
/** EditText which resizes dynamically with respect to text length. */
public class ResizingTextEditText extends AppCompatEditText {
public class ResizingTextEditText extends EditText {
private final int mOriginalTextSize;
private final int mMinTextSize;