@Override public void onDestroy() { if (loadTask!=null) { loadTask.cancel(false); } super.onDestroy(); }
private void testLifecycle(LifecycleProvider<FragmentEvent> provider) { Fragment fragment = (Fragment) provider; FragmentTestUtil.startFragment(fragment); TestObserver<FragmentEvent> testObserver = provider.lifecycle().skip(1).test(); fragment.onAttach(null); fragment.onCreate(null); fragment.onViewCreated(null, null); fragment.onStart(); fragment.onResume(); fragment.onPause(); fragment.onStop(); fragment.onDestroyView(); fragment.onDestroy(); fragment.onDetach(); testObserver.assertValues( FragmentEvent.ATTACH, FragmentEvent.CREATE, FragmentEvent.CREATE_VIEW, FragmentEvent.START, FragmentEvent.RESUME, FragmentEvent.PAUSE, FragmentEvent.STOP, FragmentEvent.DESTROY_VIEW, FragmentEvent.DESTROY, FragmentEvent.DETACH ); }
@Override public void onDestroy() { EventBus.getDefault().unregister(this); super.onDestroy(); }
TestObserver<Object> destroyViewObserver = observable.compose(provider.bindToLifecycle()).test(); fragment.onDestroy(); attachObserver.assertNotComplete(); createObserver.assertComplete();
@Override public void onDestroy() { super.onDestroy(); accessTokenTracker.stopTracking(); }
@Override public void onDestroy() { super.onDestroy(); accessTokenTracker.stopTracking(); activity = null; }
@Override public void onDestroy() { super.onDestroy(); lifecycle.onDestroy(); unregisterFragmentWithRoot(); }
/** * Connects the Fragment onDestroy method with the presenters associated to the fragment. */ @Override public void onDestroy() { super.onDestroy(); presenterLifeCycleLinker.destroyPresenters(); }
/** * Called by the system when the application is being destroyed. In this case, * the jME application is actually closed as well. This method is not called * during device configuration changes or when the application is put in the * background. */ @Override public void onDestroy() { logger.fine("onDestroy"); if (app != null) { app.stop(false); } app = null; super.onDestroy(); }
@Override @CallSuper public void onDestroy() { lifecycleSubject.onNext(FragmentEvent.DESTROY); super.onDestroy(); }
@Override public void onDestroy() { super.onDestroy(); LogUtil.d("onDestroy: "); if (mFragmentLifecycle != null) mFragmentLifecycle.onDestroy(); } }
@Override public void onDestroy() { super.onDestroy(); if (activity != null) { activity.getApplication().unregisterActivityLifecycleCallbacks(this); activeLifecycleHandlers.remove(activity); destroyRouters(); activity = null; } }
@Override public void onDestroy() { super.onDestroy(); presenterDelegate.onDestroy(!getActivity().isChangingConfigurations()); } }
@Override public void onDestroy() { super.onDestroy(); if (mBinder == null || mAdapter == null) return; mBinder.removeMissionEventListener(mAdapter.getMessenger()); mBinder.enableNotifications(true); mContext.unbindService(mConnection); mAdapter.deleterDispose(null); mBinder = null; mAdapter = null; }
@Override public void onDestroy() { super.onDestroy(); toolbar = null; menu = null; }
@Override public void onDestroy() { super.onDestroy(); lifecycle.onDestroy(); }
@Override public void onDestroy(){ super.onDestroy(); if(mFragmentManager.getBackStackEntryCount()==exit_on){ isolate(null); Airodump.startClean(); } } }
@Override public void onDestroy() { super.onDestroy(); lifecycle.onDestroy(); } }
@Override public void onDestroy() { super.onDestroy(); mLifecycleBehavior.onNext(LifecycleEvent.DESTROY); }
@Override public void onDestroy() { super.onDestroy(); LocalBroadcastManager.getInstance(getActivity()) .unregisterReceiver(mSyncStatusChangedReceiver); }