fix EventBus double register on GB

Closes #3650
// FREEBIE
This commit is contained in:
Jake McGinty 2015-07-13 12:33:00 -07:00 committed by Moxie Marlinspike
parent 124d728010
commit 1bea12f746

View File

@ -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() {