Skip to content

Commit

Permalink
fix: custom floating button gesture not working
Browse files Browse the repository at this point in the history
  • Loading branch information
plateaukao committed Nov 1, 2022
1 parent aa80d12 commit b2e0c62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "info.plateaukao.einkbro"
minSdkVersion 21
targetSdkVersion 33
versionCode 91100
versionName "9.11.0"
versionCode 91101
versionName "9.11.1"
vectorDrawables.useSupportLibrary = true

javaCompileOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class FabImageViewController(
var defaultTouchListener: OnTouchListener? = null

init {
imageView.alpha = 0.6f
imageView.alpha = 0.5f
val params = RelativeLayout.LayoutParams(
imageView.layoutParams.width,
imageView.layoutParams.height
Expand Down Expand Up @@ -72,9 +72,7 @@ class FabImageViewController(

ViewUnit.expandViewTouchArea(imageView, 20.dp(imageView.context))
setClickActions()
if (config.fabPosition != FabPosition.Custom) {
imageView.setOnTouchListener(defaultTouchListener)
}
imageView.setOnTouchListener(defaultTouchListener)
updateImage()
}

Expand Down

0 comments on commit b2e0c62

Please sign in to comment.