fix EventBus double register on GB

Closes #3650
// FREEBIE
pull/1/head
Jake McGinty 10 years ago committed by Moxie Marlinspike
parent 124d728010
commit 1bea12f746

@ -67,7 +67,7 @@ public class ThumbnailView extends FrameLayout {
@Override protected void onAttachedToWindow() {
super.onAttachedToWindow();
EventBus.getDefault().registerSticky(this);
if (!EventBus.getDefault().isRegistered(this)) EventBus.getDefault().registerSticky(this);
}
@Override protected void onDetachedFromWindow() {

Loading…
Cancel
Save