chthai64 / overscroll-bouncy-android

Overscroll bounce effect for Android.
MIT License
287 stars 46 forks source link

Remove final keyword from `mGestureDetector` #8

Open mu29 opened 7 years ago

mu29 commented 7 years ago

This will fix issues on Android 4.2 (API 16), #5 : java.lang.IllegalArgumentException: Context must not be null

Because mGestureDetector variable declared with final, it initialized before calling BouncyAdapter constructor which set mContext variable.