Esempio n. 1
0
  @Override
  public void onDetach() {
    super.onDetach();
    Log.d(TAG, "onDetach()");

    mListener = null;
  }
  @Override
  public void onDetach() {
    super.onDetach();

    // Reset the active callbacks interface to the dummy implementation.
    mCallbacks = sDummyCallbacks;
  }
 @Override
 public void onDetach() {
   super.onDetach();
   // we need to nullify reference
   // to parent activity in order not to leak it
   mNavigationHandler = null;
 }
Esempio n. 4
0
  @Override
  public void onDetach() {
    super.onDetach();

    // Log current Fragment name;
    LogUtil.i(TAG, getClass().getSimpleName() + " : onDetach ");
  }
 @Override
 public void onDetach() {
   super.onDetach();
   mListener = null;
   mOperatingSystem.removeChangeListener(this);
   mOperatingSystem = null;
 }
Esempio n. 6
0
  @Override
  public void onDetach() {
    super.onDetach();

    android.support.v7.widget.Toolbar toolbar =
        (android.support.v7.widget.Toolbar) getActivity().findViewById(R.id.toolbar);
    AppBarLayout.LayoutParams params = (AppBarLayout.LayoutParams) toolbar.getLayoutParams();

    // Ripristina gli scrollFlags originali
    params.setScrollFlags(scrollFlags);

    hideSoftKeyboard();

    /*
    //SE SI VUOLE MOSTRARE IL TABLAYOUT

    TabLayout tabLayout = (TabLayout) getActivity().findViewById(R.id.tabs);
    tabLayout.setVisibility(View.GONE);


    // SE SI VUOLE MODIFICARE IL app:layout_behavior del FrameLayout

    if(behavior == null)
        return;

    FrameLayout layout =(FrameLayout) getActivity().findViewById(R.id.dashboard_content);
    CoordinatorLayout.LayoutParams params = (CoordinatorLayout.LayoutParams) layout.getLayoutParams();

    params.setBehavior(behavior);

    layout.setLayoutParams(params);

    behavior = null;
    */
  }
 @Override
 public void onDetach() {
   super.onDetach();
   BaseApplication.getBus().post(new FragmentOnDetachEvent());
   Timber.tag(TAG);
   Timber.d("onDetach");
   initOnDetachBody();
 }
  @Override
  public void onDetach() {
    super.onDetach();
    Log.i(TAG, "onDetach");

    mListener = null;
    if (walletObservable != null && connect) walletObservable.deleteObserver(updateUI);
  }
 @Override
 public void onDetach() {
   super.onDetach();
   mListener = null;
   // Unregister since the fragment is about to be detached.
   getActivity().unregisterReceiver(contentChangeReceiver);
   super.onDestroy();
 }
Esempio n. 10
0
 @Override
 public void onDetach() {
   super.onDetach();
   for (Lib_OnCancelListener l : cancelListener) {
     l.onCancel();
   }
   cancelListener.clear();
 }
Esempio n. 11
0
 @Override
 public void onDetach() {
   super.onDetach();
   if (task != null) {
     task.unregisterListner();
     task.cancel(true);
   }
 }
  @Override
  public void onDetach() {
    super.onDetach();

    listView.setOnScrollListener(null);
    listView.setAdapter(null);

    loadingStrategy.detach();
    sessionTracker.stopTracking();
  }
Esempio n. 13
0
 @Override
 public void onDetach() {
   super.onDetach();
   try {
     Field childFragmentManager = Fragment.class.getDeclaredField("mChildFragmentManager");
     childFragmentManager.setAccessible(true);
     childFragmentManager.set(this, null);
   } catch (NoSuchFieldException e) {
     throw new RuntimeException(e);
   } catch (IllegalAccessException e) {
     throw new RuntimeException(e);
   }
 }
Esempio n. 14
0
  @Override
  public void onDetach() {
    super.onDetach();

    if (sChildFragmentManagerField != null) {
      try {
        sChildFragmentManagerField.set(this, null);
      } catch (Exception e) {
        Log.e("NETWORK", "Error setting mChildFragmentManager field", e);
      }
    }
    // remove self as observer?
  }
  @Override
  public void onDetach() {
    super.onDetach();

    if (getActivity() != null && getActivity() instanceof AppCompatActivity) {
      getActionBar().setDisplayShowTitleEnabled(true);
      getActionBar().setDisplayHomeAsUpEnabled(false);
      getActionBar().setHomeButtonEnabled(false);
    }

    // we need to nullify reference
    // to parent activity in order not to leak it
    if (getActivity() != null && getActivity() instanceof INavigationHandler) {
      ((INavigationHandler) getActivity()).setBackPressedListener(null);
    }
    // we need to nullify reference
    // to parent activity in order not to leak it
    mNavigationHandler = null;
  }
  @Override
  public void onDetach() {
    button.setClickable(true);
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
      Animator anim =
          ViewAnimationUtils.createCircularReveal(
                  thirdView,
                  thirdView.getWidth() / 2,
                  thirdView.getHeight() / 2,
                  0,
                  thirdView.getHeight())
              .setDuration(450);

      thirdView.setVisibility(View.VISIBLE);
      anim.start();
    } else {
      thirdView.setVisibility(View.VISIBLE);
    }

    super.onDetach();
  }
Esempio n. 17
0
 @Override
 public void onDetach() {
   sPref.unregisterOnSharedPreferenceChangeListener(sPrefListener);
   super.onDetach();
 }
 public void onDetach() {
   super.onDetach();
   this.f10968C = null;
 }
  @Override
  public void onDetach() {
    super.onDetach();

    mCallbacks = smyCallbacks;
  }
Esempio n. 20
0
 @Override
 public void onDetach() {
   // TODO Auto-generated method stub
   super.onDetach();
 }
 @Override
 public void onDetach() {
   mCallback = null;
   super.onDetach();
 }
Esempio n. 22
0
 @Override
 public void onDetach() {
   // TODO Auto-generated method stub
   super.onDetach();
   actionBar.removeAllTabs();
 }
 @Override
 public void onDetach() {
   super.onDetach();
   mListener = null;
 }
 /** 当该FragmentA从它所属的Activity中被删除时调用该方法 */
 @Override
 public void onDetach() {
   super.onDetach();
   Log.d(TAG, TAG + "--onDetach");
 }
Esempio n. 25
0
 @Override
 public void onDetach() {
   // TODO Auto-generated method stub
   super.onDetach();
   Log.d("Fragment03", "onDetach");
 }
Esempio n. 26
0
 @Override
 public void onDetach() {
   super.onDetach();
 }
 @Override
 public void onDetach() {
   super.onDetach();
   mCallbacks = null;
 }
Esempio n. 28
0
 /** Fragment和Activity解除关联的时候调用* */
 @Override
 public void onDetach() {
   super.onDetach();
   callbacks = defaultCallbacks;
 }
Esempio n. 29
0
  @Override
  public void onDetach() {
    if (mFinishReceiver != null) getActivity().unregisterReceiver(mFinishReceiver);

    super.onDetach();
  }
 @Override
 public void onDetach() {
   mOpener = null;
   resolver = null;
   super.onDetach();
 }