package com.bytedance.android.livesdk.chatroom.end;

import X.0cm;
import X.C2675Gg0;
import X.GJB;
import android.view.View;
import com.bytedance.android.live.actionhandler.IActionHandlerService;
import com.bytedance.android.live.base.model.user.User;
import com.bytedance.android.live.microom.IMicRoomService;
import com.bytedance.android.livesdk.ui.BaseFragment;
import com.bytedance.android.livesdkapi.depend.model.live.Room;
import com.bytedance.covode.number.Covode;
import java.util.HashMap;

public class LiveEndFragment extends BaseFragment {
    public Room LIZ;
    public String LIZIZ;
    public String LIZJ;

    static {
        Covode.recordClassIndex(13472);
    }

    public void onResume() {
        super.onResume();
    }

    public final void LIZ() {
        C2675Gg0.LIZ().LIZ((Object) new GJB(5));
    }

    public final <T extends View> T LIZ(int i) {
        if (getView() == null) {
            return null;
        }
        return getView().findViewById(i);
    }

    public final void LIZ(Room room) {
        this.LIZ = room;
        if (room != null && room.getOwner() != null) {
            User owner = this.LIZ.getOwner();
            IMicRoomService LIZ2 = 0cm.LIZ(IMicRoomService.class);
            if (LIZ2 != null && LIZ2.isMicRoomForRoom(this.LIZ) && LIZ2.isMicAudienceForRoom(this.LIZ)) {
                Room room2 = this.LIZ;
                owner = (room2 == null || room2.officialChannelInfo == null || this.LIZ.officialChannelInfo.LIZ == null) ? this.LIZ.getOwner() : this.LIZ.officialChannelInfo.LIZ;
            }
            HashMap hashMap = new HashMap(1);
            hashMap.put("log_enter_live_source", this.LIZIZ);
            hashMap.put("sec_user_id", owner.getSecUid());
            0cm.LIZ(IActionHandlerService.class).showUserProfile(owner.getId(), (String) null, hashMap);
        }
    }
}
