@Override public void onSizeChanged(int width, int height, int oldWidth, int oldHeight) { super.onSizeChanged(width, height, oldWidth, oldHeight); if (mPlanetInfos == null) { return; } placePlanets(); }
@Override public void onDetachedFromWindow() { super.onDetachedFromWindow(); ImageManager.eventBus.unregister(mEventHandler); if (mBackgroundRenderer != null) { mBackgroundRenderer.close(); mBackgroundRenderer = null; } ShieldManager.eventBus.unregister(mEventHandler); }
@Override protected void onAttachedToWindow() { super.onAttachedToWindow(); ShieldManager.eventBus.register(mEventHandler); ImageManager.eventBus.register(mEventHandler); }