Open Logan676 opened 7 years ago
I meet the same problem,this is a serious bug!
the patch below should fix the leak
+ @Override
+ protected void onDetachedFromWindow() {
+ super.onDetachedFromWindow();
+ if (handler != null) {
+ handler.removeCallbacksAndMessages(null);
+ }
+ }
+
@Logan676 where to write this piece of code? I am using this library in a fragment , onDetachedFromWindow() is not available in Fragment. Which function to override for my scenario
maybe you can still place the patch in activity, what`s the matter is how to make fragment talk with activity, there are several ways to do that.
logs