Skip to content

Commit

Permalink
fix(CalligraphyUtils): modify "android.support.v7" to "androidx.appco…
Browse files Browse the repository at this point in the history
…mpat" (#11)

Modify the check code to fix the legacy issues of migration to AndroidX.
  • Loading branch information
ZhouGongZaiShi authored and jbarr21 committed Dec 21, 2018
1 parent cab326c commit 3595492
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -323,7 +323,7 @@ static String pullFontPathFromTheme(Context context, int styleAttrId, int subSty
static boolean canCheckForV7Toolbar() {
if (sToolbarCheck == null) {
try {
Class.forName("android.support.v7.widget.Toolbar");
Class.forName("androidx.appcompat.widget.Toolbar");
sToolbarCheck = Boolean.TRUE;
} catch (ClassNotFoundException e) {
sToolbarCheck = Boolean.FALSE;
Expand All @@ -340,7 +340,7 @@ static boolean canCheckForV7Toolbar() {
static boolean canAddV7AppCompatViews() {
if (sAppCompatViewCheck == null) {
try {
Class.forName("android.support.v7.widget.AppCompatTextView");
Class.forName("androidx.appcompat.widget.AppCompatTextView");
sAppCompatViewCheck = Boolean.TRUE;
} catch (ClassNotFoundException e) {
sAppCompatViewCheck = Boolean.FALSE;
Expand Down

0 comments on commit 3595492

Please sign in to comment.