Skip to content

Commit

Permalink
Merge "Revert "Enable Sharesheet ranking using PeopleService by defau…
Browse files Browse the repository at this point in the history
…lt to test in Droidfood"" into rvc-dev
  • Loading branch information
TreeHugger Robot authored and Android (Google) Code Review committed Jun 12, 2020
2 parents 7f572a5 + 80c1856 commit d48a06e
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
*/
public class AppPredictionPerUserService extends
AbstractPerUserSystemService<AppPredictionPerUserService, AppPredictionManagerService>
implements RemoteAppPredictionService.RemoteAppPredictionServiceCallbacks {
implements RemoteAppPredictionService.RemoteAppPredictionServiceCallbacks {

private static final String TAG = AppPredictionPerUserService.class.getSimpleName();
private static final String PREDICT_USING_PEOPLE_SERVICE_PREFIX =
Expand Down Expand Up @@ -114,11 +114,8 @@ protected boolean updateLocked(boolean disabled) {
public void onCreatePredictionSessionLocked(@NonNull AppPredictionContext context,
@NonNull AppPredictionSessionId sessionId) {
if (!mSessionInfos.containsKey(sessionId)) {
// TODO(b/157500121): remove below forceUsingPeopleService logic after testing
// PeopleService for 2 weeks on Droidfood.
final boolean forceUsingPeopleService = context.getUiSurface().equals("share");
mSessionInfos.put(sessionId, new AppPredictionSessionInfo(sessionId, context,
forceUsingPeopleService || DeviceConfig.getBoolean(NAMESPACE_SYSTEMUI,
DeviceConfig.getBoolean(NAMESPACE_SYSTEMUI,
PREDICT_USING_PEOPLE_SERVICE_PREFIX + context.getUiSurface(), false),
this::removeAppPredictionSessionInfo));
}
Expand Down

0 comments on commit d48a06e

Please sign in to comment.