Call SuggestionService.launch when click suggestion.

Bug: 68267490
Test: robotests
Change-Id: I8614f256fc1a87395b5c9d41e3621164a2ded5e1
This commit is contained in:
Fan Zhang
2017-10-20 10:23:48 -07:00
parent f2b3825a09
commit 8052ac0b36
5 changed files with 52 additions and 29 deletions

View File

@@ -122,6 +122,19 @@ public class SuggestionController {
}
}
public void launchSuggestion(Suggestion suggestion) {
if (!isReady()) {
Log.w(TAG, "SuggestionController not ready, cannot launch " + suggestion.getId());
return;
}
try {
mRemoteService.launchSuggestion(suggestion);
} catch (RemoteException e) {
Log.w(TAG, "Error when calling launchSuggestion()", e);
}
}
/**
* Whether or not the manager is ready
*/