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

Commit 6e88b510 authored by Matt Pietal's avatar Matt Pietal
Browse files

Sharesheet - Hide direct share area for low ram devices

Make sure to force the item count to 0 to make sure the direct share
area stays hidden.

Bug: 134776740
Test: Low ram device, manual
Change-Id: I598752db5747b1c845495af7ae2f591488799352
parent 8a03eb78
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2476,7 +2476,7 @@ public class ChooserActivity extends ResolverActivity {
        }

        public int getServiceTargetCount() {
            if (isSendAction(getTargetIntent())) {
            if (isSendAction(getTargetIntent()) && !ActivityManager.isLowRamDeviceStatic()) {
                return Math.min(mServiceTargets.size(), MAX_SERVICE_TARGETS);
            }