Source/sources/android/support/p003v7/widget/ActivityChooserView.java
public void updateAppearance() {
        if (this.mAdapter.getCount() > 0) {
            this.mExpandActivityOverflowButton.setEnabled(true);
        } else {
            this.mExpandActivityOverflowButton.setEnabled(false);
        }
        int activityCount = this.mAdapter.getActivityCount();
        int historySize = this.mAdapter.getHistorySize();
        if (activityCount == 1 || (activityCount > 1 && historySize > 0)) {
            this.mDefaultActivityButton.setVisibility(0);
            ResolveInfo activity = this.mAdapter.getDefaultActivity();
            PackageManager packageManager = getContext().getPackageManager();
            this.mDefaultActivityButtonImage.setImageDrawable(activity.loadIcon(packageManager));
            if (this.mDefaultActionButtonContentDescription != 0) {
                CharSequence label = activity.loadLabel(packageManager);
                this.mDefaultActivityButton.setContentDescription(getContext().getString(this.mDefaultActionButtonContentDescription, new Object[]{label}));
            }
        } else {
            this.mDefaultActivityButton.setVisibility(8);
        }
        if (this.mDefaultActivityButton.getVisibility() == 0) {
            this.mActivityChooserContent.setBackgroundDrawable(this.mActivityChooserContentBackground);
        } else {
            this.mActivityChooserContent.setBackgroundDrawable(null);
        }
    }
/* access modifiers changed from: 0000 */
access modifiers changed from: 0000
access modifiers changed from : 0000
public void updateAppearance() {
        if (this.mAdapter.getCount() > 0) {
            this.mExpandActivityOverflowButton.setEnabled(true);
        } else {
            this.mExpandActivityOverflowButton.setEnabled(false);
        }
        int activityCount = this.mAdapter.getActivityCount();
        int historySize = this.mAdapter.getHistorySize();
        if (activityCount == 1 || (activityCount > 1 && historySize > 0)) {
            this.mDefaultActivityButton.setVisibility(0);
            ResolveInfo activity = this.mAdapter.getDefaultActivity();
            PackageManager packageManager = getContext().getPackageManager();
            this.mDefaultActivityButtonImage.setImageDrawable(activity.loadIcon(packageManager));
            if (this.mDefaultActionButtonContentDescription != 0) {
                CharSequence label = activity.loadLabel(packageManager);
                this.mDefaultActivityButton.setContentDescription(getContext().getString(this.mDefaultActionButtonContentDescription, new Object[]{label}));
            }
        } else {
            this.mDefaultActivityButton.setVisibility(8);
        }
        if (this.mDefaultActivityButton.getVisibility() == 0) {
            this.mActivityChooserContent.setBackgroundDrawable(this.mActivityChooserContentBackground);
        } else {
            this.mActivityChooserContent.setBackgroundDrawable(null);
        }
    }
public void updateAppearance ( ) { if ( this . mAdapter . getCount ( ) > 0 ) { this . mExpandActivityOverflowButton . setEnabled ( true ) ; } else { this . mExpandActivityOverflowButton . setEnabled ( false ) ; } int activityCount = this . mAdapter . getActivityCount ( ) ; int historySize = this . mAdapter . getHistorySize ( ) ; if ( activityCount == 1 || ( activityCount > 1 && historySize > 0 ) ) { this . mDefaultActivityButton . setVisibility ( 0 ) ; ResolveInfo activity = this . mAdapter . getDefaultActivity ( ) ; PackageManager packageManager = getContext ( ) . getPackageManager ( ) ; this . mDefaultActivityButtonImage . setImageDrawable ( activity . loadIcon ( packageManager ) ) ; if ( this . mDefaultActionButtonContentDescription != 0 ) { CharSequence label = activity . loadLabel ( packageManager ) ; this . mDefaultActivityButton . setContentDescription ( getContext ( ) . getString ( this . mDefaultActionButtonContentDescription , new Object [ ] { label } ) ) ; } } else { this . mDefaultActivityButton . setVisibility ( 8 ) ; } if ( this . mDefaultActivityButton . getVisibility ( ) == 0 ) { this . mActivityChooserContent . setBackgroundDrawable ( this . mActivityChooserContentBackground ) ; } else { this . mActivityChooserContent . setBackgroundDrawable ( null ) ; } }
access modifiers changed from: 0000
access modifiers changed from : 0000