Search in sources :

Example 1 with SelectedTopUser

use of com.waz.zclient.controllers.tracking.events.connect.SelectedTopUser 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);
}
Also used : GlobalTrackingController(com.waz.zclient.tracking.GlobalTrackingController) SelectedTopUser(com.waz.zclient.controllers.tracking.events.connect.SelectedTopUser) ChatheadWithTextFooter(com.waz.zclient.pages.main.participants.views.ChatheadWithTextFooter) OpenedConversationEvent(com.waz.zclient.controllers.tracking.events.connect.OpenedConversationEvent)

Aggregations

OpenedConversationEvent (com.waz.zclient.controllers.tracking.events.connect.OpenedConversationEvent)1 SelectedTopUser (com.waz.zclient.controllers.tracking.events.connect.SelectedTopUser)1 ChatheadWithTextFooter (com.waz.zclient.pages.main.participants.views.ChatheadWithTextFooter)1 GlobalTrackingController (com.waz.zclient.tracking.GlobalTrackingController)1