Call SuggestionService.launch when click suggestion.
Bug: 68267490 Test: robotests Change-Id: I8614f256fc1a87395b5c9d41e3621164a2ded5e1
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user