/** * Stops periodic updates of the {@link TextView}. Must be called from the application's main * thread. */ public void stop() { if (!started) { return; } started = false; player.removeListener(this); viewGroup.removeCallbacks(this); }
void setDragState(int state) { mParentView.removeCallbacks(mSetIdleRunnable); if (mDragState != state) { mDragState = state; mCallback.onViewDragStateChanged(state); if (mDragState == STATE_IDLE) { mCapturedView = null; } } }
@SuppressLint("SetTextI18n") private void updateAndPost() { column1.removeAllViews(); column2.removeAllViews(); appendVideoInfo(); appendOtherInfo(); appendPlayerState(); // appendPlayerWindowIndex(); appendPreferredDisplayModeId(); viewGroup.removeCallbacks(this); viewGroup.postDelayed(this, REFRESH_INTERVAL_MS); }
public void cancel() { if (mDebug && mPost) Log.i(FGestureManager.class.getSimpleName(), "IdleRunnable cancel"); mViewGroup.removeCallbacks(this); mPost = false; } }
void setDragState(int state) { mParentView.removeCallbacks(mSetIdleRunnable); if (mDragState != state) { mDragState = state; mCallback.onViewDragStateChanged(state); if (mDragState == STATE_IDLE) { mCapturedView = null; } } }
void setDragState(int state) { mParentView.removeCallbacks(mSetIdleRunnable); if (mDragState != state) { mDragState = state; mCallback.onViewDragStateChanged(state); if (mDragState == STATE_IDLE) { mCapturedView = null; } } }
void setDragState(int state) { mParentView.removeCallbacks(mSetIdleRunnable); if (mDragState != state) { mDragState = state; mCallback.onViewDragStateChanged(state); if (mDragState == STATE_IDLE) { mCapturedView = null; } } }
void setDragState(int state) { mParentView.removeCallbacks(mSetIdleRunnable); if (mDragState != state) { mDragState = state; mCallback.onViewDragStateChanged(state); if (mDragState == STATE_IDLE) { mCapturedView = null; } } }
void setDragState(int state) { mParentView.removeCallbacks(mSetIdleRunnable); if (mDragState != state) { mDragState = state; mCallback.onViewDragStateChanged(state); if (mDragState == STATE_IDLE) { mCapturedView = null; } } }
@Override public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) { mBottomInset = insets.getSystemWindowInsetBottom(); int range = getScrollRange(); if (getOwnScrollY() > range) { // HACK: We're repeatedly getting staggered insets here while the IME is // animating away. To work around that we'll wait until things have settled. mStackScrollLayout.removeCallbacks(mReclamp); mStackScrollLayout.postDelayed(mReclamp, 50); } else if (mForcedScroll != null) { // The scroll was requested before we got the actual inset - in case we need // to scroll up some more do so now. scrollTo(mForcedScroll); } return insets; }
mMenuView.removeCallbacks(mShowEditRunnable);