use of com.waz.zclient.pages.main.participants.views.ChatheadWithTextFooter in project wire-android by wireapp.
the class PickUserFragment method onUserDoubleClicked.
@Override
public void onUserDoubleClicked(User user, int position, View anchorView) {
if (!(anchorView instanceof ChatheadWithTextFooter)) {
return;
}
if (user == null || user.isMe() || user.getConnectionStatus() != User.ConnectionStatus.ACCEPTED || getControllerFactory().getPickUserController().hasSelectedUsers()) {
return;
}
((BaseScalaActivity) getActivity()).injectJava(GlobalTrackingController.class).tagEvent(new SelectedTopUser());
((BaseScalaActivity) getActivity()).injectJava(GlobalTrackingController.class).tagEvent(new OpenedConversationEvent(ConversationType.ONE_TO_ONE_CONVERSATION.name()));
getStoreFactory().getConversationStore().setCurrentConversation(user.getConversation(), ConversationChangeRequester.START_CONVERSATION);
}
Aggregations