Skip to content

Commit

Permalink
Fix ExpandableRecyclerView.isTransformedTouchPointInView removed by p…
Browse files Browse the repository at this point in the history
…roguard.
  • Loading branch information
pokercc committed Jan 20, 2021
1 parent b126fba commit 9f7fbff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ android {
signingConfig signingConfigs.debug
}
release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import android.os.Parcelable.ClassLoaderCreator
import android.util.AttributeSet
import android.util.Log
import android.view.View
import androidx.annotation.Keep
import androidx.core.view.children
import androidx.customview.view.AbsSavedState
import androidx.recyclerview.widget.RecyclerView
Expand Down Expand Up @@ -109,6 +110,7 @@ open class ExpandableRecyclerView @JvmOverloads constructor(
* Hook system method to handle touch event.
*/
@Suppress("MemberVisibilityCanBePrivate", "unused")
@Keep
protected fun isTransformedTouchPointInView(
x: Float, y: Float, child: View,
outLocalPoint: PointF?
Expand Down

0 comments on commit 9f7fbff

Please sign in to comment.