private void stop() { mRunning = false; final View thisView = StoreHouseHeader.this; thisView.removeCallbacks(this); } }
private void clearCallbacks() { if (mTriggerLongPress != null) { mSrc.removeCallbacks(mTriggerLongPress); } if (mDisallowIntercept != null) { mSrc.removeCallbacks(mDisallowIntercept); } }
synchronized void stop() { // vars to default mDiffX = 0; mDiffY = 0; // change state isFinished = true; // remove callbacks mView.removeCallbacks(this); }
@Override public void onStop() { root.removeCallbacks(this); super.onStop(); }
@Override public void onDestroy() { content.removeCallbacks(this); super.onDestroy(); }
@Override public void cancel() { if (mAnimatorMap.size() > 0) { HashMap<Animator, PropertyBundle> mAnimatorMapCopy = (HashMap<Animator, PropertyBundle>)mAnimatorMap.clone(); Set<Animator> animatorSet = mAnimatorMapCopy.keySet(); for (Animator runningAnim : animatorSet) { runningAnim.cancel(); } } mPendingAnimations.clear(); View v = mView.get(); if (v != null) { v.removeCallbacks(mAnimationStarter); } }
@Override public void cancel() { if (mAnimatorMap.size() > 0) { HashMap<Animator, PropertyBundle> mAnimatorMapCopy = (HashMap<Animator, PropertyBundle>)mAnimatorMap.clone(); Set<Animator> animatorSet = mAnimatorMapCopy.keySet(); for (Animator runningAnim : animatorSet) { runningAnim.cancel(); } } mPendingAnimations.clear(); View v = mView.get(); if (v != null) { v.removeCallbacks(mAnimationStarter); } }
private void scheduleNextStep() { view.removeCallbacks(this); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { view.postOnAnimationDelayed(this, FRAME_TIME); } else { view.postDelayed(this, FRAME_TIME); } }
private void cancelDeferredProcess(RecyclerView.ViewHolder holder) { int n = mDeferredProcesses.size(); for (int i = n - 1; i >= 0; i--) { ViewHolderDeferredProcess dp = mDeferredProcesses.get(i).get(); if (dp != null && dp.hasTargetViewHolder(holder)) { holder.itemView.removeCallbacks(dp); mDeferredProcesses.remove(i); } else if (dp == null || dp.lostReference(holder)) { mDeferredProcesses.remove(i); } } }
View v = mView.get(); if (v != null) { v.removeCallbacks(mAnimationStarter); v.post(mAnimationStarter);
View v = mView.get(); if (v != null) { v.removeCallbacks(mAnimationStarter); v.post(mAnimationStarter);
@Test public void shouldRemovePostedCallbacksFromMessageQueue() throws Exception { TestRunnable runnable = new TestRunnable(); view.postDelayed(runnable, 1); view.removeCallbacks(runnable); Robolectric.getForegroundThreadScheduler().advanceBy(1); assertThat(runnable.wasRun).isFalse(); }
@Override public void cancel() { if (mAnimatorMap.size() > 0) { HashMap<Animator, PropertyBundle> mAnimatorMapCopy = (HashMap<Animator, PropertyBundle>)mAnimatorMap.clone(); Set<Animator> animatorSet = mAnimatorMapCopy.keySet(); for (Animator runningAnim : animatorSet) { runningAnim.cancel(); } } mPendingAnimations.clear(); View v = mView.get(); if (v != null) { v.removeCallbacks(mAnimationStarter); } }
@Override public void cancel() { if (mAnimatorMap.size() > 0) { HashMap<Animator, PropertyBundle> mAnimatorMapCopy = (HashMap<Animator, PropertyBundle>)mAnimatorMap.clone(); Set<Animator> animatorSet = mAnimatorMapCopy.keySet(); for (Animator runningAnim : animatorSet) { runningAnim.cancel(); } } mPendingAnimations.clear(); View v = mView.get(); if (v != null) { v.removeCallbacks(mAnimationStarter); } }
View v = mView.get(); if (v != null) { v.removeCallbacks(mAnimationStarter); v.post(mAnimationStarter);
View v = mView.get(); if (v != null) { v.removeCallbacks(mAnimationStarter); v.post(mAnimationStarter);
public void cancelLongPress() { mHasPerformedLongPress = false; if (mPendingCheckForLongPress != null) { mView.removeCallbacks(mPendingCheckForLongPress); mPendingCheckForLongPress = null; } }
private void postOnAnimationDelayed(long delayMillis) { if (mEatRunOnAnimationRequest) { mReSchedulePostAnimationCallback = true; } else { mView.removeCallbacks(this); ViewCompat.postOnAnimationDelayed(mView, this, delayMillis); } }
public void stop() { if (mView == null) return; mView.removeCallbacks(this); mAnimation.abortAnimation(); }
public void stop() { if (mView == null) return; mView.removeCallbacks(this); mAnimation.abortAnimation(); }