Source/sources/android/support/p003v7/widget/ActivityChooserView.java
public void showPopupUnchecked(int maxActivityCount) {
        boolean defaultActivityButtonShown;
        int maxActivityCountOffset;
        if (this.mAdapter.getDataModel() == null) {
            throw new IllegalStateException("No data model. Did you call #setDataModel?");
        }
        getViewTreeObserver().addOnGlobalLayoutListener(this.mOnGlobalLayoutListener);
        if (this.mDefaultActivityButton.getVisibility() == 0) {
            defaultActivityButtonShown = true;
        } else {
            defaultActivityButtonShown = false;
        }
        int activityCount = this.mAdapter.getActivityCount();
        if (defaultActivityButtonShown) {
            maxActivityCountOffset = 1;
        } else {
            maxActivityCountOffset = 0;
        }
        if (maxActivityCount == Integer.MAX_VALUE || activityCount <= maxActivityCount + maxActivityCountOffset) {
            this.mAdapter.setShowFooterView(false);
            this.mAdapter.setMaxActivityCount(maxActivityCount);
        } else {
            this.mAdapter.setShowFooterView(true);
            this.mAdapter.setMaxActivityCount(maxActivityCount - 1);
        }
        ListPopupWindow popupWindow = getListPopupWindow();
        if (!popupWindow.isShowing()) {
            if (this.mIsSelectingDefaultActivity || !defaultActivityButtonShown) {
                this.mAdapter.setShowDefaultActivity(true, defaultActivityButtonShown);
            } else {
                this.mAdapter.setShowDefaultActivity(false, false);
            }
            popupWindow.setContentWidth(Math.min(this.mAdapter.measureContentWidth(), this.mListPopupMaxWidth));
            popupWindow.show();
            if (this.mProvider != null) {
                this.mProvider.subUiVisibilityChanged(true);
            }
            popupWindow.getListView().setContentDescription(getContext().getString(C0205R.string.abc_activitychooserview_choose_application));
            popupWindow.getListView().setSelector(new ColorDrawable(0));
        }
    }
/* access modifiers changed from: 0000 */
access modifiers changed from: 0000
access modifiers changed from : 0000
public void showPopupUnchecked(int maxActivityCount) {
        boolean defaultActivityButtonShown;
        int maxActivityCountOffset;
        if (this.mAdapter.getDataModel() == null) {
            throw new IllegalStateException("No data model. Did you call #setDataModel?");
        }
        getViewTreeObserver().addOnGlobalLayoutListener(this.mOnGlobalLayoutListener);
        if (this.mDefaultActivityButton.getVisibility() == 0) {
            defaultActivityButtonShown = true;
        } else {
            defaultActivityButtonShown = false;
        }
        int activityCount = this.mAdapter.getActivityCount();
        if (defaultActivityButtonShown) {
            maxActivityCountOffset = 1;
        } else {
            maxActivityCountOffset = 0;
        }
        if (maxActivityCount == Integer.MAX_VALUE || activityCount <= maxActivityCount + maxActivityCountOffset) {
            this.mAdapter.setShowFooterView(false);
            this.mAdapter.setMaxActivityCount(maxActivityCount);
        } else {
            this.mAdapter.setShowFooterView(true);
            this.mAdapter.setMaxActivityCount(maxActivityCount - 1);
        }
        ListPopupWindow popupWindow = getListPopupWindow();
        if (!popupWindow.isShowing()) {
            if (this.mIsSelectingDefaultActivity || !defaultActivityButtonShown) {
                this.mAdapter.setShowDefaultActivity(true, defaultActivityButtonShown);
            } else {
                this.mAdapter.setShowDefaultActivity(false, false);
            }
            popupWindow.setContentWidth(Math.min(this.mAdapter.measureContentWidth(), this.mListPopupMaxWidth));
            popupWindow.show();
            if (this.mProvider != null) {
                this.mProvider.subUiVisibilityChanged(true);
            }
            popupWindow.getListView().setContentDescription(getContext().getString(C0205R.string.abc_activitychooserview_choose_application));
            popupWindow.getListView().setSelector(new ColorDrawable(0));
        }
    }
public void showPopupUnchecked ( int maxActivityCount ) { boolean defaultActivityButtonShown ; int maxActivityCountOffset ; if ( this . mAdapter . getDataModel ( ) == null ) { throw new IllegalStateException ( "No data model. Did you call #setDataModel?" ) ; } getViewTreeObserver ( ) . addOnGlobalLayoutListener ( this . mOnGlobalLayoutListener ) ; if ( this . mDefaultActivityButton . getVisibility ( ) == 0 ) { defaultActivityButtonShown = true ; } else { defaultActivityButtonShown = false ; } int activityCount = this . mAdapter . getActivityCount ( ) ; if ( defaultActivityButtonShown ) { maxActivityCountOffset = 1 ; } else { maxActivityCountOffset = 0 ; } if ( maxActivityCount == Integer . MAX_VALUE || activityCount <= maxActivityCount + maxActivityCountOffset ) { this . mAdapter . setShowFooterView ( false ) ; this . mAdapter . setMaxActivityCount ( maxActivityCount ) ; } else { this . mAdapter . setShowFooterView ( true ) ; this . mAdapter . setMaxActivityCount ( maxActivityCount - 1 ) ; } ListPopupWindow popupWindow = getListPopupWindow ( ) ; if ( ! popupWindow . isShowing ( ) ) { if ( this . mIsSelectingDefaultActivity || ! defaultActivityButtonShown ) { this . mAdapter . setShowDefaultActivity ( true , defaultActivityButtonShown ) ; } else { this . mAdapter . setShowDefaultActivity ( false , false ) ; } popupWindow . setContentWidth ( Math . min ( this . mAdapter . measureContentWidth ( ) , this . mListPopupMaxWidth ) ) ; popupWindow . show ( ) ; if ( this . mProvider != null ) { this . mProvider . subUiVisibilityChanged ( true ) ; } popupWindow . getListView ( ) . setContentDescription ( getContext ( ) . getString ( C0205R . string . abc_activitychooserview_choose_application ) ) ; popupWindow . getListView ( ) . setSelector ( new ColorDrawable ( 0 ) ) ; } }
access modifiers changed from: 0000
access modifiers changed from : 0000