diff --git a/README.md b/README.md index eb88cea..7202e4d 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Reverse Curve ``` dependencies { - implementation 'com.github.simformsolutions:SSCustomBottomNavigation:3.5' + implementation 'com.github.simformsolutions:SSCustomBottomNavigation:3.6' } ``` diff --git a/custombottomnavigation/src/main/java/com/simform/custombottomnavigation/SSCustomBottomNavigation.kt b/custombottomnavigation/src/main/java/com/simform/custombottomnavigation/SSCustomBottomNavigation.kt index 1f2c65a..3803280 100644 --- a/custombottomnavigation/src/main/java/com/simform/custombottomnavigation/SSCustomBottomNavigation.kt +++ b/custombottomnavigation/src/main/java/com/simform/custombottomnavigation/SSCustomBottomNavigation.kt @@ -219,11 +219,11 @@ class SSCustomBottomNavigation : FrameLayout { isReverseCurve = getBoolean(R.styleable.SSCustomBottomNavigation_ss_reverseCurve, isReverseCurve) val iconTextTypeFace = getString(R.styleable.SSCustomBottomNavigation_ss_iconTextTypeface) - if (TextUtils.isEmpty(iconTextTypeFace)) + if (!iconTextTypeFace.isNullOrEmpty()) iconTextTypeface = Typeface.createFromAsset(context.assets, iconTextTypeFace) val typeface = getString(R.styleable.SSCustomBottomNavigation_ss_countTypeface) - if (TextUtils.isEmpty(typeface)) + if (!typeface.isNullOrEmpty()) countTypeface = Typeface.createFromAsset(context.assets, typeface) val drawable =