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
This commit is contained in:
Matt Pietal
2019-06-10 10:20:15 -04:00
parent 8a03eb7842
commit 6e88b51026

View File

@@ -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);
}