From 3e1ed2694162ce5929ee423a14af7e9b364e956b Mon Sep 17 00:00:00 2001 From: Cesar Morigaki <38049362+cmorigaki@users.noreply.github.com> Date: Thu, 4 Mar 2021 22:30:14 -0300 Subject: [PATCH] Release v1.0.0 (#32) ## Context Release v1.0.0 --- project-config/dependencies.gradle | 4 ++-- .../view/appbarlayout/AppBarLayoutExtensions.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/project-config/dependencies.gradle b/project-config/dependencies.gradle index 625582a..e4ef496 100644 --- a/project-config/dependencies.gradle +++ b/project-config/dependencies.gradle @@ -11,8 +11,8 @@ ext { AndroidConfig = [ applicationId: "br.com.recipebook", - versionCode: 1, - versionName: "0.1.0", + versionCode: 10000001, // x.xxx.xx-xx + versionName: "1.0.0", compileSdk: 30, buildTools: "30.0.3", diff --git a/utility/utility-android/src/main/java/br/com/recipebook/utilityandroid/view/appbarlayout/AppBarLayoutExtensions.kt b/utility/utility-android/src/main/java/br/com/recipebook/utilityandroid/view/appbarlayout/AppBarLayoutExtensions.kt index ba0d3d1..12fec4d 100644 --- a/utility/utility-android/src/main/java/br/com/recipebook/utilityandroid/view/appbarlayout/AppBarLayoutExtensions.kt +++ b/utility/utility-android/src/main/java/br/com/recipebook/utilityandroid/view/appbarlayout/AppBarLayoutExtensions.kt @@ -11,8 +11,8 @@ fun AppBarLayout.setCollapsedAndDisableScroll(recyclerView: RecyclerView) { // Disable AppBar scroll from the recycler view ViewCompat.setNestedScrollingEnabled(recyclerView, false) // Disable AppBar scroll from the AppBar - ((layoutParams as CoordinatorLayout.LayoutParams).behavior as AppBarLayout.Behavior) - .setDragCallback(object : AppBarLayout.Behavior.DragCallback() { + ((layoutParams as? CoordinatorLayout.LayoutParams)?.behavior as? AppBarLayout.Behavior) + ?.setDragCallback(object : AppBarLayout.Behavior.DragCallback() { override fun canDrag(appBarLayout: AppBarLayout): Boolean { return false }