Skip to content

Commit

Permalink
removing dialpad reliance on the legacy support library
Browse files Browse the repository at this point in the history
  • Loading branch information
ouchadam committed Sep 16, 2022
1 parent 552e945 commit f923edf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
4 changes: 0 additions & 4 deletions library/dialpad/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
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.
Expand All @@ -33,7 +31,7 @@
* 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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@
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;
Expand Down

0 comments on commit f923edf

Please sign in to comment.