src/main/java/ru/mail/dondokidon/extensions/View/ActionMode/ActionMode.java
/**
     * Start action mode. If {@link #isStarted()} is <t>true</t> nothing will happen.
     */
Start action mode. If  #isStarted() is true nothing will happen.
Start action mode . If #isStarted () is true nothing will happen .
public void start(){
        if (!isStarted) {
            isStarted = true;
            layoutActionModeToolbar();
            AppearAnimator = mCallback.createAppearAnimator(ActionModeToolbar);
            if (AppearAnimator != null) {
                AppearAnimator.addListener(new AnimatorListenerAdapter() {
                    @Override
                    public void onAnimationCancel(Animator animation) {
                        super.onAnimationCancel(animation);
                        finish();
                    }
                    @Override
                    public void onAnimationEnd(Animator animation) {
                        super.onAnimationEnd(animation);
                        finish();
                    }
                    private void finish() {
                        AppearAnimator = null;
                    }
                });
                AppearAnimator.start();
            }
            triggerOnStart();
        }
    }
public void start ( ) { if ( ! isStarted ) { isStarted = true ; layoutActionModeToolbar ( ) ; AppearAnimator = mCallback . createAppearAnimator ( ActionModeToolbar ) ; if ( AppearAnimator != null ) { AppearAnimator . addListener ( new AnimatorListenerAdapter ( ) { @ Override public void onAnimationCancel ( Animator animation ) { super . onAnimationCancel ( animation ) ; finish ( ) ; } @ Override public void onAnimationEnd ( Animator animation ) { super . onAnimationEnd ( animation ) ; finish ( ) ; } private void finish ( ) { AppearAnimator = null ; } } ) ; AppearAnimator . start ( ) ; } triggerOnStart ( ) ; } }
Start action mode.
Start action mode .