Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a1195fd authored by fredc's avatar fredc Committed by Android (Google) Code Review
Browse files

Fixed issue with ActivityChooserView not working if there is only 1 share option available

Change-Id: If21742f3ddc28f54bf8da6cbc7e81ee0df19d6f0
parent bf072a71
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -497,7 +497,7 @@ public class ActivityChooserView extends ViewGroup implements ActivityChooserMod
        // Default activity button.
        final int activityCount = mAdapter.getActivityCount();
        final int historySize = mAdapter.getHistorySize();
        if (activityCount > 0 && historySize > 0) {
        if (activityCount==1 || activityCount > 1 && historySize > 0) {
            mDefaultActivityButton.setVisibility(VISIBLE);
            ResolveInfo activity = mAdapter.getDefaultActivity();
            PackageManager packageManager = mContext.getPackageManager();