@Override protected void onPause() { Log.d(TAG, "onPause"); mHandler.removeCallbacks(REFRESH_FLOWS_RUNNABLE); mCore.getBus().unregister(this); super.onPause(); }
@Override protected void onResume() { super.onResume(); Log.d(TAG, "onResume"); mCore.getBus().register(this); mHandler.post(REFRESH_FLOWS_RUNNABLE); }
@Override public void onResume() { super.onResume(); mHandler.postDelayed(mTimeUpdateRunnable, REFRESH_INTERVAL_MILLIS); mCore = KegbotCore.getInstance(getActivity()); mCore.getBus().register(this); }
@Override public void onPause() { mCore.getBus().unregister(this); mHandler.removeCallbacks(mTimeUpdateRunnable); super.onPause(); }