Java Code Examples for android.view.View.cancelPendingInputEvents()

The following are Jave code examples for showing how to use cancelPendingInputEvents() of the android.view.View class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: ProgressManager   File: a.java   View Source Code Vote up 5 votes
/**
 * Cancels pending inputs and if an Activity Transition is to be run, starts the transition.
 *
 * @param options The ActivityOptions bundle used to start an Activity.
 */
private void cancelInputsAndStartExitTransition(Bundle options) {
    final View decor = mWindow != null ? mWindow.peekDecorView() : null;
    if (decor != null) {
        decor.cancelPendingInputEvents();
    }
    if (options != null && !isTopOfTask()) {
        mActivityTransitionState.startExitOutTransition(this, options);
    }
}
 
Example 2
Project: ProgressManager   File: a.java   View Source Code Vote up 5 votes
/**
 * Cancels pending inputs and if an Activity Transition is to be run, starts the transition.
 *
 * @param options The ActivityOptions bundle used to start an Activity.
 */
private void cancelInputsAndStartExitTransition(Bundle options) {
    final View decor = mWindow != null ? mWindow.peekDecorView() : null;
    if (decor != null) {
        decor.cancelPendingInputEvents();
    }
    if (options != null && !isTopOfTask()) {
        mActivityTransitionState.startExitOutTransition(this, options);
    }
}
 
Example 3
Project: ProgressManager   File: a.java   View Source Code Vote up 5 votes
/**
 * Cancels pending inputs and if an Activity Transition is to be run, starts the transition.
 *
 * @param options The ActivityOptions bundle used to start an Activity.
 */
private void cancelInputsAndStartExitTransition(Bundle options) {
    final View decor = mWindow != null ? mWindow.peekDecorView() : null;
    if (decor != null) {
        decor.cancelPendingInputEvents();
    }
    if (options != null && !isTopOfTask()) {
        mActivityTransitionState.startExitOutTransition(this, options);
    }
}
 
Example 4
Project: ProgressManager   File: a.java   View Source Code Vote up 5 votes
/**
 * Cancels pending inputs and if an Activity Transition is to be run, starts the transition.
 *
 * @param options The ActivityOptions bundle used to start an Activity.
 */
private void cancelInputsAndStartExitTransition(Bundle options) {
    final View decor = mWindow != null ? mWindow.peekDecorView() : null;
    if (decor != null) {
        decor.cancelPendingInputEvents();
    }
    if (options != null && !isTopOfTask()) {
        mActivityTransitionState.startExitOutTransition(this, options);
    }
}
 
Example 5
Project: ProgressManager   File: a.java   View Source Code Vote up 5 votes
/**
 * Cancels pending inputs and if an Activity Transition is to be run, starts the transition.
 *
 * @param options The ActivityOptions bundle used to start an Activity.
 */
private void cancelInputsAndStartExitTransition(Bundle options) {
    final View decor = mWindow != null ? mWindow.peekDecorView() : null;
    if (decor != null) {
        decor.cancelPendingInputEvents();
    }
    if (options != null && !isTopOfTask()) {
        mActivityTransitionState.startExitOutTransition(this, options);
    }
}
 
Example 6
Project: ProgressManager   File: a.java   View Source Code Vote up 5 votes
/**
 * Cancels pending inputs and if an Activity Transition is to be run, starts the transition.
 *
 * @param options The ActivityOptions bundle used to start an Activity.
 */
private void cancelInputsAndStartExitTransition(Bundle options) {
    final View decor = mWindow != null ? mWindow.peekDecorView() : null;
    if (decor != null) {
        decor.cancelPendingInputEvents();
    }
    if (options != null && !isTopOfTask()) {
        mActivityTransitionState.startExitOutTransition(this, options);
    }
}
 
Example 7
Project: ProgressManager   File: a.java   View Source Code Vote up 5 votes
/**
 * Cancels pending inputs and if an Activity Transition is to be run, starts the transition.
 *
 * @param options The ActivityOptions bundle used to start an Activity.
 */
private void cancelInputsAndStartExitTransition(Bundle options) {
    final View decor = mWindow != null ? mWindow.peekDecorView() : null;
    if (decor != null) {
        decor.cancelPendingInputEvents();
    }
    if (options != null && !isTopOfTask()) {
        mActivityTransitionState.startExitOutTransition(this, options);
    }
}
 
Example 8
Project: ProgressManager   File: a.java   View Source Code Vote up 5 votes
/**
 * Cancels pending inputs and if an Activity Transition is to be run, starts the transition.
 *
 * @param options The ActivityOptions bundle used to start an Activity.
 */
private void cancelInputsAndStartExitTransition(Bundle options) {
    final View decor = mWindow != null ? mWindow.peekDecorView() : null;
    if (decor != null) {
        decor.cancelPendingInputEvents();
    }
    if (options != null && !isTopOfTask()) {
        mActivityTransitionState.startExitOutTransition(this, options);
    }
}
 
Example 9
Project: ProgressManager   File: a.java   View Source Code Vote up 5 votes
/**
 * Cancels pending inputs and if an Activity Transition is to be run, starts the transition.
 *
 * @param options The ActivityOptions bundle used to start an Activity.
 */
private void cancelInputsAndStartExitTransition(Bundle options) {
    final View decor = mWindow != null ? mWindow.peekDecorView() : null;
    if (decor != null) {
        decor.cancelPendingInputEvents();
    }
    if (options != null && !isTopOfTask()) {
        mActivityTransitionState.startExitOutTransition(this, options);
    }
}
 
Example 10
Project: ProgressManager   File: a.java   View Source Code Vote up 5 votes
/**
 * Cancels pending inputs and if an Activity Transition is to be run, starts the transition.
 *
 * @param options The ActivityOptions bundle used to start an Activity.
 */
private void cancelInputsAndStartExitTransition(Bundle options) {
    final View decor = mWindow != null ? mWindow.peekDecorView() : null;
    if (decor != null) {
        decor.cancelPendingInputEvents();
    }
    if (options != null && !isTopOfTask()) {
        mActivityTransitionState.startExitOutTransition(this, options);
    }
}
 
Example 11
Project: ProgressManager   File: a.java   View Source Code Vote up 5 votes
/**
 * Cancels pending inputs and if an Activity Transition is to be run, starts the transition.
 *
 * @param options The ActivityOptions bundle used to start an Activity.
 */
private void cancelInputsAndStartExitTransition(Bundle options) {
    final View decor = mWindow != null ? mWindow.peekDecorView() : null;
    if (decor != null) {
        decor.cancelPendingInputEvents();
    }
    if (options != null && !isTopOfTask()) {
        mActivityTransitionState.startExitOutTransition(this, options);
    }
}
 
Example 12
Project: ProgressManager   File: a.java   View Source Code Vote up 5 votes
/**
 * Cancels pending inputs and if an Activity Transition is to be run, starts the transition.
 *
 * @param options The ActivityOptions bundle used to start an Activity.
 */
private void cancelInputsAndStartExitTransition(Bundle options) {
    final View decor = mWindow != null ? mWindow.peekDecorView() : null;
    if (decor != null) {
        decor.cancelPendingInputEvents();
    }
    if (options != null && !isTopOfTask()) {
        mActivityTransitionState.startExitOutTransition(this, options);
    }
}
 
Example 13
Project: ProgressManager   File: a.java   View Source Code Vote up 5 votes
/**
 * Cancels pending inputs and if an Activity Transition is to be run, starts the transition.
 *
 * @param options The ActivityOptions bundle used to start an Activity.
 */
private void cancelInputsAndStartExitTransition(Bundle options) {
    final View decor = mWindow != null ? mWindow.peekDecorView() : null;
    if (decor != null) {
        decor.cancelPendingInputEvents();
    }
    if (options != null && !isTopOfTask()) {
        mActivityTransitionState.startExitOutTransition(this, options);
    }
}
 
Example 14
Project: ProgressManager   File: a.java   View Source Code Vote up 5 votes
/**
 * Cancels pending inputs and if an Activity Transition is to be run, starts the transition.
 *
 * @param options The ActivityOptions bundle used to start an Activity.
 */
private void cancelInputsAndStartExitTransition(Bundle options) {
    final View decor = mWindow != null ? mWindow.peekDecorView() : null;
    if (decor != null) {
        decor.cancelPendingInputEvents();
    }
    if (options != null && !isTopOfTask()) {
        mActivityTransitionState.startExitOutTransition(this, options);
    }
}
 
Example 15
Project: SetupWizardLibCompat   File: LinkSpan.java   View Source Code Vote up 5 votes
@Override
public void onClick(View view) {
    final Context context = view.getContext();
    if (context instanceof OnClickListener) {
        ((OnClickListener) context).onClick(this);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            view.cancelPendingInputEvents();
        }
    } else {
        Log.w(TAG, "Dropping click event. No listener attached.");
    }
}