From aed60c1fcf6daa007c2d4e510a16e92a295521a0 Mon Sep 17 00:00:00 2001 From: Ashvin Date: Mon, 1 May 2023 17:55:42 +0530 Subject: [PATCH] Reopen issue #44 issue fixed --- README.md | 2 +- .../custombottomnavigation/SSCustomBottomNavigation.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 =