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

Commit c69c1435 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Sharesheet - Disable expansion" into rvc-dev am: dc9a5551 am: 2606c5f8

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11820086

Change-Id: I8c38967894c56e4e7d34d38f048651e932020100
parents 1624afc9 2606c5f8
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -3592,10 +3592,9 @@ public class ChooserActivity extends ResolverActivity implements
         * Only expand direct share area if there is a minimum number of targets.
         */
        private boolean canExpandDirectShare() {
            int orientation = getResources().getConfiguration().orientation;
            return mChooserListAdapter.getNumServiceTargetsForExpand() > getMaxTargetsPerRow()
                    && orientation == Configuration.ORIENTATION_PORTRAIT
                    && !isInMultiWindowMode();
            // Do not enable until we have confirmed more apps are using sharing shortcuts
            // Check git history for enablement logic
            return false;
        }

        public ChooserListAdapter getListAdapter() {