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

Commit 185f715e authored by Matt Pietal's avatar Matt Pietal
Browse files

Sharesheet - Disable expansion

Leave disabled until more apps are using sharing shortcuts

Fixes: 157065816
Test: atest ChooserActivityTest
Change-Id: I7f8811617fe2f3a77f86b8459c7f06b0929a40c9
parent a4614b0f
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() {