Loading core/java/com/android/internal/app/ChooserActivity.java +5 −3 Original line number Diff line number Diff line Loading @@ -1603,7 +1603,8 @@ public class ChooserActivity extends ResolverActivity { */ @Nullable private AppPredictor getAppPredictorForDirectShareIfEnabled() { return USE_PREDICTION_MANAGER_FOR_DIRECT_TARGETS ? getAppPredictor() : null; return USE_PREDICTION_MANAGER_FOR_DIRECT_TARGETS && !ActivityManager.isLowRamDeviceStatic() ? getAppPredictor() : null; } /** Loading Loading @@ -2349,6 +2350,8 @@ public class ChooserActivity extends ResolverActivity { @Override public void onListRebuilt() { updateAlphabeticalList(); // don't support direct share on low ram devices if (ActivityManager.isLowRamDeviceStatic()) { return; Loading Loading @@ -2379,7 +2382,6 @@ public class ChooserActivity extends ResolverActivity { queryTargetServices(this); } updateAlphabeticalList(); } @Override Loading Loading @@ -2830,7 +2832,7 @@ public class ChooserActivity extends ResolverActivity { // There can be at most one row in the listview, that is internally // a ViewGroup with 2 rows public int getServiceTargetRowCount() { if (isSendAction(getTargetIntent())) { if (isSendAction(getTargetIntent()) && !ActivityManager.isLowRamDeviceStatic()) { return 1; } return 0; Loading Loading
core/java/com/android/internal/app/ChooserActivity.java +5 −3 Original line number Diff line number Diff line Loading @@ -1603,7 +1603,8 @@ public class ChooserActivity extends ResolverActivity { */ @Nullable private AppPredictor getAppPredictorForDirectShareIfEnabled() { return USE_PREDICTION_MANAGER_FOR_DIRECT_TARGETS ? getAppPredictor() : null; return USE_PREDICTION_MANAGER_FOR_DIRECT_TARGETS && !ActivityManager.isLowRamDeviceStatic() ? getAppPredictor() : null; } /** Loading Loading @@ -2349,6 +2350,8 @@ public class ChooserActivity extends ResolverActivity { @Override public void onListRebuilt() { updateAlphabeticalList(); // don't support direct share on low ram devices if (ActivityManager.isLowRamDeviceStatic()) { return; Loading Loading @@ -2379,7 +2382,6 @@ public class ChooserActivity extends ResolverActivity { queryTargetServices(this); } updateAlphabeticalList(); } @Override Loading Loading @@ -2830,7 +2832,7 @@ public class ChooserActivity extends ResolverActivity { // There can be at most one row in the listview, that is internally // a ViewGroup with 2 rows public int getServiceTargetRowCount() { if (isSendAction(getTargetIntent())) { if (isSendAction(getTargetIntent()) && !ActivityManager.isLowRamDeviceStatic()) { return 1; } return 0; Loading