コード例 #1
0
 private void goComposeByInfo(TTieZhiInfo ttiezhiinfo)
 {
     if (lisener != null)
     {
         awg.a().a(mInfo.resId);
         lisener.a(awg.a().c(mInfo.resId), true);
     }
 }
コード例 #2
0
public class TTieZhiViewCell extends LinearLayout
{

    private static final String TAG = "TTieZhiViewCell";
    private static Semaphore semp = new Semaphore(1);
    boolean bGroupInfoExist;
    public int downloadCount;
    public int downloadFinishCount;
    public List groupInfos;
    private RecyclingImageView img1;
    private ImageView imgdownload;
    private ImageView imgshare;
    private axt lisener;
    private Context mContext;
    private TTieZhiInfo mInfo;
    atz weChatShare;

    public TTieZhiViewCell(Context context)
    {
        super(context);
        groupInfos = new ArrayList();
        mContext = context;
        initView();
    }

    public TTieZhiViewCell(Context context, AttributeSet attributeset)
    {
        super(context, attributeset);
        groupInfos = new ArrayList();
        mContext = context;
        initView();
    }

    private void downloadInfo(TTieZhiInfo ttiezhiinfo)
    {
        if (ttiezhiinfo == null)
        {
            return;
        } else
        {
            awc.a().a(ttiezhiinfo, new axs(this));
            return;
        }
    }

    private void goComposeByInfo(TTieZhiInfo ttiezhiinfo)
    {
        if (lisener != null)
        {
            awg.a().a(mInfo.resId);
            lisener.a(awg.a().c(mInfo.resId), true);
        }
    }

    private void groupInfoClicked()
    {
        boolean flag;
        flag = false;
        mInfo.version = "0.0";
        bGroupInfoExist = true;
        if (lisener == null) goto _L2; else goto _L1
_L1:
        int i;
        downloadCount = 0;
        i = 0;
_L13:
        if (i >= mInfo.groupIds.size()) goto _L4; else goto _L3
_L3:
        int l = ((Integer)mInfo.groupIds.get(i)).intValue();
        if (awg.a().b(l)) goto _L6; else goto _L5
_L5:
        TTieZhiInfo ttiezhiinfo = lisener.a(l);
        if (ttiezhiinfo != null) goto _L7; else goto _L2
_L2:
        return;
_L7:
        if (ttiezhiinfo.version != null)
        {
            mInfo.version = bgx.b(mInfo.version, ttiezhiinfo.version);
        }
        downloadCount = downloadCount + 1;
        bGroupInfoExist = false;
_L9:
        groupInfos.add(ttiezhiinfo);
        i++;
        continue; /* Loop/switch isn't completed */
_L6:
        TTieZhiInfo ttiezhiinfo1;
        ttiezhiinfo1 = awg.a().c(l);
        ttiezhiinfo = ttiezhiinfo1;
        if (ttiezhiinfo1 != null) goto _L9; else goto _L8
_L8:
        return;
_L4:
        if (!bGroupInfoExist)
        {
            continue; /* Loop/switch isn't completed */
        }
        if (groupInfos.size() <= 0) goto _L2; else goto _L10
_L10:
        int j = ((flag) ? 1 : 0);
        if (!awg.a().b(mInfo.resId))
        {
            awg.a().b(mInfo);
            j = ((flag) ? 1 : 0);
        }
        for (; j < mInfo.groupIds.size(); j++)
        {
            int k = ((Integer)mInfo.groupIds.get(j)).intValue();
            awg.a().a(k);
        }

        awg.a().a(mInfo.resId);
        lisener.a(groupInfos);
        return;
        if (mContext != null && (new awm(mContext, mInfo)).a()) goto _L2; else goto _L11
_L11:
        startDownloadGroupInfo();
        return;
        if (true) goto _L13; else goto _L12
_L12:
    }