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

Commit ed903247 authored by LuK1337's avatar LuK1337
Browse files

Sharesheet: Set max ranked items to 8

* Previously it was 4 for portrait, and 8 for landscape.

Change-Id: Ic092f1d1784259c9f3c0870eda1dd1ae8544c697
parent 9e617847
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2823,9 +2823,7 @@ public class ChooserActivity extends ResolverActivity implements

    @Override // ChooserListCommunicator
    public int getMaxRankedTargets() {
        return mChooserMultiProfilePagerAdapter.getCurrentRootAdapter() == null
                ? ChooserGridAdapter.MAX_TARGETS_PER_ROW_PORTRAIT
                : mChooserMultiProfilePagerAdapter.getCurrentRootAdapter().getMaxTargetsPerRow();
        return ChooserGridAdapter.MAX_TARGETS_PER_ROW_LANDSCAPE;
    }

    @Override // ChooserListCommunicator