Source/sources/android/support/p003v7/app/AppCompatDelegateImpl.java
public int updateStatusGuard(int insetTop) {
        int newMargin;
        int i = 0;
        boolean showStatusGuard = false;
        if (this.mActionModeView != null && (this.mActionModeView.getLayoutParams() instanceof MarginLayoutParams)) {
            MarginLayoutParams mlp = (MarginLayoutParams) this.mActionModeView.getLayoutParams();
            boolean mlpChanged = false;
            if (this.mActionModeView.isShown()) {
                if (this.mTempRect1 == null) {
                    this.mTempRect1 = new Rect();
                    this.mTempRect2 = new Rect();
                }
                Rect insets = this.mTempRect1;
                Rect localInsets = this.mTempRect2;
                insets.set(0, insetTop, 0, 0);
                ViewUtils.computeFitSystemWindows(this.mSubDecor, insets, localInsets);
                if (localInsets.top == 0) {
                    newMargin = insetTop;
                } else {
                    newMargin = 0;
                }
                if (mlp.topMargin != newMargin) {
                    mlpChanged = true;
                    mlp.topMargin = insetTop;
                    if (this.mStatusGuard == null) {
                        this.mStatusGuard = new View(this.mContext);
                        this.mStatusGuard.setBackgroundColor(this.mContext.getResources().getColor(C0205R.color.abc_input_method_navigation_guard));
                        this.mSubDecor.addView(this.mStatusGuard, -1, new LayoutParams(-1, insetTop));
                    } else {
                        LayoutParams lp = this.mStatusGuard.getLayoutParams();
                        if (lp.height != insetTop) {
                            lp.height = insetTop;
                            this.mStatusGuard.setLayoutParams(lp);
                        }
                    }
                }
                if (this.mStatusGuard != null) {
                    showStatusGuard = true;
                } else {
                    showStatusGuard = false;
                }
                if (!this.mOverlayActionMode && showStatusGuard) {
                    insetTop = 0;
                }
            } else if (mlp.topMargin != 0) {
                mlpChanged = true;
                mlp.topMargin = 0;
            }
            if (mlpChanged) {
                this.mActionModeView.setLayoutParams(mlp);
            }
        }
        if (this.mStatusGuard != null) {
            View view = this.mStatusGuard;
            if (!showStatusGuard) {
                i = 8;
            }
            view.setVisibility(i);
        }
        return insetTop;
    }
/* access modifiers changed from: 0000 */
access modifiers changed from: 0000
access modifiers changed from : 0000
public int updateStatusGuard(int insetTop) {
        int newMargin;
        int i = 0;
        boolean showStatusGuard = false;
        if (this.mActionModeView != null && (this.mActionModeView.getLayoutParams() instanceof MarginLayoutParams)) {
            MarginLayoutParams mlp = (MarginLayoutParams) this.mActionModeView.getLayoutParams();
            boolean mlpChanged = false;
            if (this.mActionModeView.isShown()) {
                if (this.mTempRect1 == null) {
                    this.mTempRect1 = new Rect();
                    this.mTempRect2 = new Rect();
                }
                Rect insets = this.mTempRect1;
                Rect localInsets = this.mTempRect2;
                insets.set(0, insetTop, 0, 0);
                ViewUtils.computeFitSystemWindows(this.mSubDecor, insets, localInsets);
                if (localInsets.top == 0) {
                    newMargin = insetTop;
                } else {
                    newMargin = 0;
                }
                if (mlp.topMargin != newMargin) {
                    mlpChanged = true;
                    mlp.topMargin = insetTop;
                    if (this.mStatusGuard == null) {
                        this.mStatusGuard = new View(this.mContext);
                        this.mStatusGuard.setBackgroundColor(this.mContext.getResources().getColor(C0205R.color.abc_input_method_navigation_guard));
                        this.mSubDecor.addView(this.mStatusGuard, -1, new LayoutParams(-1, insetTop));
                    } else {
                        LayoutParams lp = this.mStatusGuard.getLayoutParams();
                        if (lp.height != insetTop) {
                            lp.height = insetTop;
                            this.mStatusGuard.setLayoutParams(lp);
                        }
                    }
                }
                if (this.mStatusGuard != null) {
                    showStatusGuard = true;
                } else {
                    showStatusGuard = false;
                }
                if (!this.mOverlayActionMode && showStatusGuard) {
                    insetTop = 0;
                }
            } else if (mlp.topMargin != 0) {
                mlpChanged = true;
                mlp.topMargin = 0;
            }
            if (mlpChanged) {
                this.mActionModeView.setLayoutParams(mlp);
            }
        }
        if (this.mStatusGuard != null) {
            View view = this.mStatusGuard;
            if (!showStatusGuard) {
                i = 8;
            }
            view.setVisibility(i);
        }
        return insetTop;
    }
public int updateStatusGuard ( int insetTop ) { int newMargin ; int i = 0 ; boolean showStatusGuard = false ; if ( this . mActionModeView != null && ( this . mActionModeView . getLayoutParams ( ) instanceof MarginLayoutParams ) ) { MarginLayoutParams mlp = ( MarginLayoutParams ) this . mActionModeView . getLayoutParams ( ) ; boolean mlpChanged = false ; if ( this . mActionModeView . isShown ( ) ) { if ( this . mTempRect1 == null ) { this . mTempRect1 = new Rect ( ) ; this . mTempRect2 = new Rect ( ) ; } Rect insets = this . mTempRect1 ; Rect localInsets = this . mTempRect2 ; insets . set ( 0 , insetTop , 0 , 0 ) ; ViewUtils . computeFitSystemWindows ( this . mSubDecor , insets , localInsets ) ; if ( localInsets . top == 0 ) { newMargin = insetTop ; } else { newMargin = 0 ; } if ( mlp . topMargin != newMargin ) { mlpChanged = true ; mlp . topMargin = insetTop ; if ( this . mStatusGuard == null ) { this . mStatusGuard = new View ( this . mContext ) ; this . mStatusGuard . setBackgroundColor ( this . mContext . getResources ( ) . getColor ( C0205R . color . abc_input_method_navigation_guard ) ) ; this . mSubDecor . addView ( this . mStatusGuard , - 1 , new LayoutParams ( - 1 , insetTop ) ) ; } else { LayoutParams lp = this . mStatusGuard . getLayoutParams ( ) ; if ( lp . height != insetTop ) { lp . height = insetTop ; this . mStatusGuard . setLayoutParams ( lp ) ; } } } if ( this . mStatusGuard != null ) { showStatusGuard = true ; } else { showStatusGuard = false ; } if ( ! this . mOverlayActionMode && showStatusGuard ) { insetTop = 0 ; } } else if ( mlp . topMargin != 0 ) { mlpChanged = true ; mlp . topMargin = 0 ; } if ( mlpChanged ) { this . mActionModeView . setLayoutParams ( mlp ) ; } } if ( this . mStatusGuard != null ) { View view = this . mStatusGuard ; if ( ! showStatusGuard ) { i = 8 ; } view . setVisibility ( i ) ; } return insetTop ; }
access modifiers changed from: 0000
access modifiers changed from : 0000