Merge "Sharesheet - Hide direct share area for low ram devices" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
fcc4d76a97
@@ -2533,7 +2533,7 @@ public class ChooserActivity extends ResolverActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int getServiceTargetCount() {
|
public int getServiceTargetCount() {
|
||||||
if (isSendAction(getTargetIntent())) {
|
if (isSendAction(getTargetIntent()) && !ActivityManager.isLowRamDeviceStatic()) {
|
||||||
return Math.min(mServiceTargets.size(), MAX_SERVICE_TARGETS);
|
return Math.min(mServiceTargets.size(), MAX_SERVICE_TARGETS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user