private void loadMore(int paramInt) {
   if (this.mLoadedPosition.contains(Integer.valueOf(paramInt))) return;
   this.mLoadedTotal = paramInt;
   this.mLoadedPosition.add(Integer.valueOf(paramInt));
   InfoManager.getInstance()
       .loadProgramsScheduleNode(
           InfoManager.getInstance().root().getCurrentPlayingChannelNode(), this);
 }
 public void onElementClick(ViewElement paramViewElement) {
   PlayerAgent.getInstance().addPlaySource(33);
   if (this.mNode.sectionId == -100) {
     ControllerManager.getInstance().redirectToMyCollectionView();
     MobclickAgent.onEvent(InfoManager.getInstance().getContext(), "frontCollectionMore");
     TCAgent.onEvent(InfoManager.getInstance().getContext(), "frontCollectionMore");
     return;
   }
   ControllerManager.getInstance().openDiscoverCategoryController(this.mNode.sectionId);
 }
예제 #3
0
 protected void onQtItemClick(View paramView)
 {
   if (this.mNode == null)
     return;
   if ((this.mNode.nodeName.equalsIgnoreCase("program")) && (((ProgramNode)this.mNode).getCurrPlayStatus() == 2))
   {
     if (InfoManager.getInstance().root().mPersonalCenterNode.reserveNode.isExisted(this.mNode))
       InfoManager.getInstance().root().mPersonalCenterNode.reserveNode.cancelReserve(((ProgramNode)this.mNode).id);
     while (true)
     {
       invalidate();
       return;
       InfoManager.getInstance().root().mPersonalCenterNode.reserveNode.addReserveNode((ProgramNode)this.mNode);
     }
   }
   int j;
   int i;
   if (InfoManager.getInstance().root().currentPlayMode() == RootNode.PlayMode.FMPLAY)
   {
     Toast.makeText(getContext(), "亲,无法使用系统收音机回听节目,只能播放当前直播节目", 1).show();
     j = 0;
     if (this.mNode.nodeName.equalsIgnoreCase("program"))
     {
       i = j;
       if (this.mNode.parent != null)
       {
         i = j;
         if (this.mNode.parent.nodeName.equalsIgnoreCase("radiochannel"))
           i = Integer.valueOf(((RadioChannelNode)this.mNode.parent).freq).intValue();
       }
       if (i != 0)
         FMManager.getInstance().tune(i);
       PlayerAgent.getInstance().dispatchPlayStateInFM(4096);
       InfoManager.getInstance().root().tuneFM(true);
     }
   }
   while (true)
   {
     invalidate();
     return;
     i = j;
     if (!this.mNode.nodeName.equalsIgnoreCase("radiochannel"))
       break;
     i = Integer.valueOf(((RadioChannelNode)this.mNode).freq).intValue();
     break;
     dispatchActionEvent("refresh", this.mNode);
     PlayerAgent.getInstance().play(this.mNode);
   }
 }
예제 #4
0
 public void close(boolean paramBoolean)
 {
   this.mMiniView.destroy();
   BitmapResourceCache.getInstance().clearResourceCacheOfOne(this, 0);
   InfoManager.getInstance().unRegisterSubscribeEventListener(this, new String[] { "RCPPL" });
   super.close(paramBoolean);
 }
 private boolean isPlaying(ProgramNode paramProgramNode) {
   if (paramProgramNode == null) return false;
   Node localNode = InfoManager.getInstance().root().getCurrentPlayingNode();
   if (localNode == null) return false;
   if (!this.mNode.nodeName.equalsIgnoreCase(localNode.nodeName)) return false;
   return this.mNode.uniqueId == ((ProgramNode) localNode).uniqueId;
 }
예제 #6
0
 private boolean isPlaying() {
   if (this.mNode == null) return false;
   Node localNode = InfoManager.getInstance().root().getCurrentPlayingNode();
   if (localNode == null) return false;
   if (!this.mNode.nodeName.equalsIgnoreCase(localNode.nodeName)) return false;
   return (this.mNode.nodeName.equalsIgnoreCase("program"))
       && (((ProgramNode) this.mNode).id == ((ProgramNode) localNode).id);
 }
예제 #7
0
 public Chat getChat() {
   if (this.mChat == null) {
     this.mChat = new LiveRoomChat();
     Context localContext = InfoManager.getInstance().getContext();
     ((LiveRoomChat) this.mChat).init(localContext);
     this.mChat.registerEventListener(this);
   }
   return this.mChat;
 }
 private void setProgramList() {
   ChannelNode localChannelNode = InfoManager.getInstance().root().getCurrentPlayingChannelNode();
   if (localChannelNode != null) {
     List localList = localChannelNode.getAllLstProgramNode();
     if ((localList != null) && (localList.size() > this.mLoadedTotal)) {
       this.mListView.update("addmore", localList);
       this.mListView.cancelLoadState();
     }
   }
 }
예제 #9
0
 public boolean onTouchEvent(MotionEvent paramMotionEvent) {
   if ((!this.mInTouchMode) && (paramMotionEvent.getAction() != 0)) ;
   do {
     do {
       int i;
       do {
         return true;
         switch (paramMotionEvent.getAction()) {
           default:
             return true;
           case 0:
             this.mLastMotionX = paramMotionEvent.getX();
             this.mLastMotionY = paramMotionEvent.getY();
             this.mSelectIndex = getSelectIndex();
             if (this.mSelectIndex < 0) {
               this.mInTouchMode = false;
               dispatchActionEvent("cancelPop", null);
               return true;
             }
             this.mInTouchMode = true;
             invalidate();
             return true;
           case 2:
             this.mLastMotionX = paramMotionEvent.getX();
             this.mLastMotionY = paramMotionEvent.getY();
             i = getSelectIndex();
           case 3:
           case 1:
         }
       } while ((this.mSelectIndex <= -1) || (i == this.mSelectIndex));
       this.mInTouchMode = false;
       this.mSelectIndex = -1;
     } while (!isItemPressed());
     invalidate();
     return true;
     this.mInTouchMode = false;
     this.mSelectIndex = -1;
   } while (!isItemPressed());
   invalidate();
   return true;
   if ((this.mSelectIndex > -1) && (this.mSelectIndex < this.PLATFORM_NAMES.length)) {
     MobclickAgent.onEvent(getContext(), "ChatroomInvite", this.PLATFORM_NAMES[this.mSelectIndex]);
     dispatchActionEvent("shareToPlatform", Integer.valueOf(this.mSelectIndex));
     ShareUtil.inviteByPlatform(
         getContext(),
         InfoManager.getInstance().root().getCurrentPlayingNode(),
         this.mSelectIndex);
   }
   this.mInTouchMode = false;
   invalidate();
   return true;
 }
예제 #10
0
 private void actualCheckin()
 {
   if (this.mTalkingGroupInfo == null)
     return;
   if (!IMContacts.getInstance().hasWatchedGroup(this.mTalkingId))
     InfoManager.getInstance().getUserProfile().followGroup(this.mTalkingId);
   String str1 = "";
   List localList = this.mTalkingGroupInfo.lstAdmins;
   int i;
   Object localObject;
   UserInfo localUserInfo;
   String str6;
   String str4;
   if ((localList != null) && (localList.size() > 0))
   {
     i = 0;
     localObject = str1;
     if (i < localList.size())
     {
       localUserInfo = (UserInfo)localList.get(i);
       if ((localUserInfo instanceof AdminInfo))
       {
         str6 = ((AdminInfo)localUserInfo).weiboName;
         if ((str6 != null) && (str6.length() != 0))
           break label290;
         str4 = localUserInfo.snsInfo.sns_name;
       }
     }
   }
   while (true)
   {
     String str5 = (String)localObject + "@" + str4 + " ";
     i++;
     localObject = str5;
     break;
     str4 = localUserInfo.snsInfo.sns_name;
     continue;
     str1 = (String)localObject + "还有";
     Locale localLocale = Locale.CHINESE;
     String str2 = CONTENTS[2];
     Object[] arrayOfObject = new Object[3];
     arrayOfObject[0] = this.mTalkingGroupInfo.groupName;
     arrayOfObject[1] = str1;
     arrayOfObject[2] = this.mTalkingGroupInfo.groupName;
     String str3 = String.format(localLocale, str2, arrayOfObject);
     sendMessage("签个到,大家好呀~~", 1);
     QTMSGManage.getInstance().sendStatistcsMessage("im_checkin");
     ShareUtil.shareToPlatform(str3, 8, 9);
     return;
     label290: str4 = str6;
   }
 }
 public void config(String paramString, Object paramObject) {
   if (paramString.equalsIgnoreCase("setData")) {
     CategoryResortPopView.CategoryResortInfo localCategoryResortInfo =
         new CategoryResortPopView.CategoryResortInfo(
             1,
             InfoManager.getInstance()
                 .root()
                 .mContentCategory
                 .mVirtualNode
                 .getLstCategoryNodes()
                 .size());
     this.mView.update("setData", localCategoryResortInfo);
   }
 }
예제 #12
0
 protected String buildUrl()
 {
   if (this.URL == null)
     return "";
   this.URL += "&phonetype=android";
   String str1 = AppInfo.getCurrentInternalVersion(this.mContext);
   if (str1 != null)
     this.URL = (this.URL + "&versioncode=" + str1);
   String str2 = InfoManager.getInstance().getDeviceId();
   if (str2 == null)
     str2 = "UnknownUser";
   this.URL = (this.URL + "&deviceId=" + str2);
   return this.URL;
 }
예제 #13
0
 protected void onStartListening(Intent paramIntent, RecognitionService.Callback paramCallback) {
   this.mCallBack = paramCallback;
   if (InfoManager.getInstance().hasConnectedNetwork()) {
     this.mRecorder = VoiceRecord.getInstance();
     this.mRecorder.setListener(this.mListener);
     this.mRecorder.startRecord();
     return;
   }
   try {
     this.mCallBack.error(0);
     return;
   } catch (RemoteException paramIntent) {
     paramIntent.printStackTrace();
   }
 }
예제 #14
0
 private void loadPlayingProgram(List<Node> paramList)
 {
   if (paramList == null)
     return;
   Object localObject = "";
   Iterator localIterator = paramList.iterator();
   paramList = (List<Node>)localObject;
   label17: int i;
   if (localIterator.hasNext())
   {
     localObject = (Node)localIterator.next();
     if (((Node)localObject).nodeName.equalsIgnoreCase("channel"))
       i = ((ChannelNode)localObject).channelId;
   }
   while (true)
   {
     label57: if (!InfoManager.getInstance().root().mPlayingProgramInfo.isExist(i))
       if (paramList.equalsIgnoreCase(""))
         paramList = paramList + i;
     while (true)
     {
       break label17;
       if (!((Node)localObject).nodeName.equalsIgnoreCase("radiochannel"))
         break label179;
       i = ((RadioChannelNode)localObject).channelId;
       break label57;
       paramList = paramList + "," + i;
       continue;
       if (paramList.equalsIgnoreCase(""))
         break;
       InfoManager.getInstance().loadCurrentPlayingPrograms(paramList, this);
       return;
     }
     label179: i = 0;
   }
 }
예제 #15
0
 private void actualFlowerToUser(UserInfo paramUserInfo)
 {
   if (!IMContacts.getInstance().hasWatchedGroup(this.mTalkingId))
     InfoManager.getInstance().getUserProfile().followGroup(this.mTalkingId);
   if ((paramUserInfo instanceof AdminInfo))
   {
     str1 = ((AdminInfo)paramUserInfo).weiboName;
     if ((str1 != null) && (str1.length() != 0));
   }
   for (String str1 = paramUserInfo.snsInfo.sns_name; ; str1 = paramUserInfo.snsInfo.sns_name)
   {
     String str2 = String.format(Locale.CHINESE, CONTENTS[0], new Object[] { str1 });
     QTMSGManage.getInstance().sendStatistcsMessage("im_flower");
     ShareUtil.shareToPlatform(str2, 10, 11);
     return;
   }
 }
 public CategoryOrderManageController(Context paramContext) {
   super(paramContext);
   NavigationBarTopView localNavigationBarTopView = new NavigationBarTopView(paramContext);
   localNavigationBarTopView.setLeftItem(0);
   localNavigationBarTopView.setRightItem("管理");
   localNavigationBarTopView.setTitleItem(new NavigationBarItem("全部分类"));
   setNavigationBar(localNavigationBarTopView);
   this.mView =
       new CategoryOrderManageView(
           paramContext,
           InfoManager.getInstance()
               .root()
               .mContentCategory
               .mVirtualNode
               .getLstCategoryNodes()
               .subList(0, 10));
   attachView(this.mView);
 }
예제 #17
0
 private int getThisHeight() {
   int i;
   if (this.mNode == null) {
     i = this.itemLayout.height;
     return i;
   }
   this.mIsLiving = isPlaying();
   this.mDownloadState =
       InfoManager.getInstance().root().mDownLoadInfoNode.hasDownLoad(this.mNode);
   String str = "";
   if (this.mNode.nodeName.equalsIgnoreCase("program")) {
     if (this.mRemind) str = "    " + ((ProgramNode) this.mNode).title;
   } else
     label102:
     if (!this.mIsLiving) break label238;
   label238:
   for (TextPaint localTextPaint = SkinManager.getInstance().getmHighlightTextPaint2();
       ;
       localTextPaint = SkinManager.getInstance().getNormalTextPaint()) {
     this.mTitleLayout =
         new StaticLayout(
             str,
             localTextPaint,
             this.itemLayout.width - this.programLayout.leftMargin,
             Layout.Alignment.ALIGN_NORMAL,
             1.2F,
             0.5F,
             false);
     this.mTitleHeight = this.mTitleLayout.getHeight();
     int j =
         this.programLayout.topMargin
             + this.mTitleHeight
             + this.otherInfoLayout.topMargin
             + this.otherInfoLayout.height;
     i = j;
     if (!this.mHasChannelName) break;
     return j + (this.channelnameLayout.height + this.channelnameLayout.topMargin);
     str = ((ProgramNode) this.mNode).title;
     break label102;
   }
 }
예제 #18
0
 private float drawStateLabel(Canvas paramCanvas, int paramInt) {
   int i;
   String str;
   if (this.mNode.nodeName.equalsIgnoreCase("program")) {
     i = ((ProgramNode) this.mNode).getCurrPlayStatus();
     switch (i) {
       default:
         str = "";
       case 1:
       case 2:
       case 3:
     }
   }
   while (true)
     if ((str == null) || (str.equalsIgnoreCase(""))) {
       return this.itemLayout.leftMargin;
       i = 3;
       break;
       str = "直播";
       this.mStatePaint.setColor(SkinManager.getTextColorHighlight2());
       continue;
       if (InfoManager.getInstance().root().mPersonalCenterNode.reserveNode.isExisted(this.mNode))
         ;
       for (str = "已预约"; ; str = "预约") {
         this.mStatePaint.setColor(SkinManager.getTextColorHighlight2());
         break;
       }
       return this.itemLayout.leftMargin;
     }
   this.mStatePaint.getTextBounds(str, 0, str.length(), this.textBound);
   paramCanvas.drawText(
       str,
       this.itemLayout.leftMargin + this.otherInfoLayout.leftMargin,
       this.otherInfoLayout.topMargin
           + paramInt
           + (this.otherInfoLayout.height - this.textBound.height()),
       this.mStatePaint);
   return this.itemLayout.leftMargin + this.otherInfoLayout.leftMargin + this.textBound.width();
 }
예제 #19
0
 private void doClickEvent() {
   if ((this.mNode == null) || (this.mSelectedIndex == -1)) return;
   if (this.mSelectedIndex == 2) {
     QTMSGManage.getInstance().sendStatistcsMessage("resumerecent_close");
     EventDispacthManager.getInstance().dispatchAction("closerecentplay", null);
     return;
   }
   Object localObject;
   if (this.mSelectedIndex == 1) {
     localObject = new CustomPopActionParam.Builder();
     ((CustomPopActionParam.Builder) localObject).setTitle(getTitle()).addNode(this.mNode);
     if (this.mDownloadState == 0) ((CustomPopActionParam.Builder) localObject).addButton(1);
     ((CustomPopActionParam.Builder) localObject).addButton(0);
     localObject = ((CustomPopActionParam.Builder) localObject).create();
     EventDispacthManager.getInstance().dispatchAction("showoperatepop", localObject);
     return;
   }
   int i;
   if (this.mNode.nodeName.equalsIgnoreCase("program")) {
     i = ((ProgramNode) this.mNode).getCurrPlayStatus();
     localObject = null;
   }
   while (true) {
     if (i == 2) {
       if (InfoManager.getInstance().root().mPersonalCenterNode.reserveNode.isExisted(this.mNode))
         InfoManager.getInstance()
             .root()
             .mPersonalCenterNode
             .reserveNode
             .cancelReserve(((ProgramNode) this.mNode).id);
       while (true) {
         invalidate();
         label194:
         if (!this.mBelongToPodcasterInfo) break label319;
         QTMSGManage.getInstance().sendStatistcsMessage("PodcasterInfo", "收听");
         return;
         if (this.mNode.nodeName.equalsIgnoreCase("ondemandprogram")) {
           localObject = null;
           i = 3;
           break;
         }
         if (!this.mNode.nodeName.equalsIgnoreCase("playhistory")) break label329;
         QTMSGManage.getInstance().sendStatistcsMessage("resumerecent_play");
         localObject = ((PlayHistoryNode) this.mNode).playNode;
         i = 1;
         break;
         InfoManager.getInstance()
             .root()
             .mPersonalCenterNode
             .reserveNode
             .addReserveNode((ProgramNode) this.mNode);
       }
     }
     ControllerManager localControllerManager = ControllerManager.getInstance();
     if (localObject != null) ;
     while (true) {
       localControllerManager.redirectToPlayViewByNode((Node) localObject, true);
       break label194;
       label319:
       break;
       localObject = this.mNode;
     }
     label329:
     localObject = null;
     i = 1;
   }
 }
예제 #20
0
  public void onEvent(Object paramObject1, String paramString, Object paramObject2)
  {
    if (paramString.equalsIgnoreCase("sendDiscuss"))
      sendMessage((String)paramObject2, 0);
    ChatActionsView.ChatActionType localChatActionType;
    do
    {
      return;
      if (paramString.equalsIgnoreCase("expression"))
      {
        if (this.isInputShowing)
        {
          this.mViewState = 1;
          this.mInputView.update("closeKeyboard", null);
          return;
        }
        if (this.mViewState == 1)
        {
          this.mViewState = 0;
          requestLayout();
          return;
        }
        if (!CloudCenter.getInstance().isLogin())
        {
          CloudCenter.OnLoginEventListerner local4 = new CloudCenter.OnLoginEventListerner()
          {
            public void onLoginFailed(int paramAnonymousInt)
            {
            }

            public void onLoginSuccessed(int paramAnonymousInt)
            {
              QTMSGManage.getInstance().sendStatistcsMessage("chat_functionclick", "expression");
              ImChatMainView.access$302(ImChatMainView.this, 1);
              ImChatMainView.this.mInputView.update("closeKeyboard", null);
              ImChatMainView.this.requestLayout();
            }
          };
          EventDispacthManager.getInstance().dispatchAction("showLogin", local4);
          return;
        }
        QTMSGManage.getInstance().sendStatistcsMessage("chat_functionclick", "expression");
        this.mViewState = 1;
        this.mInputView.update("closeKeyboard", null);
        requestLayout();
        return;
      }
      if (paramString.equalsIgnoreCase("expand"))
      {
        if (this.isInputShowing)
        {
          this.mViewState = 3;
          this.mInputView.update("closeKeyboard", null);
          return;
        }
        if (this.mViewState == 3)
        {
          this.mViewState = 0;
          requestLayout();
          return;
        }
        this.mViewState = 3;
        requestLayout();
        return;
      }
      if (paramString.equalsIgnoreCase("inviteFriends"))
      {
        if (this.isInputShowing)
        {
          this.mViewState = 2;
          this.mInputView.update("closeKeyboard", null);
          return;
        }
        if (this.mViewState != 2)
        {
          this.mViewState = 2;
          requestLayout();
          return;
        }
        this.mViewState = 0;
        requestLayout();
        return;
      }
      if (paramString.equalsIgnoreCase("selectExpression"))
      {
        this.mInputView.update("addExpression", paramObject2);
        return;
      }
      if (paramString.equalsIgnoreCase("deleteExpression"))
      {
        this.mInputView.update(paramString, paramObject2);
        return;
      }
      if (paramString.equalsIgnoreCase("scrollToFirstIndexAtMe"))
      {
        dispatchActionEvent(paramString, paramObject2);
        return;
      }
      if (paramString.equalsIgnoreCase("useraction"))
      {
        if (!CloudCenter.getInstance().isLogin())
        {
          CloudCenter.OnLoginEventListerner local5 = new CloudCenter.OnLoginEventListerner()
          {
            public void onLoginFailed(int paramAnonymousInt)
            {
            }

            public void onLoginSuccessed(int paramAnonymousInt)
            {
              InfoManager.getInstance().getUserProfile().followGroup(ImChatMainView.this.mTalkingId);
              ImChatMainView.this.mJoinView.setVisibility(8);
            }
          };
          EventDispacthManager.getInstance().dispatchAction("showLogin", local5);
          return;
        }
        InfoManager.getInstance().getUserProfile().followGroup(this.mTalkingId);
        this.mJoinView.setVisibility(8);
        return;
      }
      if (paramString.equalsIgnoreCase("flowerToAdmin"))
      {
        flowerToUser((UserInfo)paramObject2);
        return;
      }
      if (!paramString.equalsIgnoreCase("chatActionType"))
        break;
      localChatActionType = (ChatActionsView.ChatActionType)paramObject2;
      if (localChatActionType == ChatActionsView.ChatActionType.SHARE)
      {
        shareGroup();
        return;
      }
      if (localChatActionType == ChatActionsView.ChatActionType.ASKNAME)
      {
        sendMessage("现在播的什么歌?", 0);
        return;
      }
    }
    while ((localChatActionType == ChatActionsView.ChatActionType.ANSWERNAME) || (localChatActionType != ChatActionsView.ChatActionType.COLLECTION));
    return;
    if (paramString.equalsIgnoreCase("shareToPlatform"))
    {
      invite(((Integer)paramObject2).intValue());
      return;
    }
    dispatchActionEvent(paramString, paramObject2);
  }
예제 #21
0
 private void sendMessage(String paramString, int paramInt)
 {
   if ((ChatMode.isGroup()) && (!IMContacts.getInstance().hasWatchedGroup(this.mTalkingId)))
     InfoManager.getInstance().getUserProfile().followGroup(this.mTalkingId);
   actualSendMessage(paramString, paramInt);
 }
예제 #22
0
 private void addHistoryMessages(List<IMMessage> paramList)
 {
   String str = InfoManager.getInstance().getUserProfile().getUserKey();
   int i;
   int j;
   int k;
   long l1;
   int m;
   label41: IMMessage localIMMessage;
   boolean bool2;
   int n;
   label152: long l2;
   if (this.mDatas.size() == 0)
   {
     i = 1;
     j = paramList.size();
     k = 0;
     l1 = 0L;
     m = 0;
     if (m >= j)
       break label275;
     localIMMessage = (IMMessage)paramList.get(m);
     if (m == 0)
     {
       this.mOldestMsgSeq = localIMMessage.msgSeq;
       long l3 = localIMMessage.publish;
       if ((i == 0) && (l3 > this.mOldestTimeStamp - 1800L))
         this.mDatas.remove(0);
       this.mOldestTimeStamp = l3;
     }
     boolean bool1 = TextUtils.equals(str, localIMMessage.mFromID);
     bool2 = isAdmin(localIMMessage.mFromID);
     if (!bool1)
       break label256;
     if (!bool2)
       break label250;
     n = 4;
     l2 = localIMMessage.publish;
     if (l2 - l1 < 1800L)
       break label337;
     this.mDatas.add(m + k, new ChatItem(32, getTimestampBySecond(l2)));
   }
   for (int i1 = k + 1; ; i1 = k)
   {
     this.mDatas.add(m + i1, new ChatItem(n, localIMMessage));
     m++;
     k = i1;
     l1 = l2;
     break label41;
     i = 0;
     break;
     label250: n = 1;
     break label152;
     label256: if (bool2)
     {
       n = 20;
       break label152;
     }
     n = 17;
     break label152;
     label275: this.mAdapter.notifyDataSetChanged();
     this.mListView.onRefreshComplete();
     if (i != 0)
     {
       if (this.mLastTimestamp < l1)
         this.mLastTimestamp = l1;
       this.mListView.setSelection(this.mAdapter.getCount());
       return;
     }
     this.mListView.setSelection(j + k);
     return;
     label337: l2 = l1;
   }
 }
예제 #23
0
 private void actualSendMessage(String paramString, int paramInt)
 {
   int i = 4;
   if (this.mLoading)
   {
     this.mDatas.clear();
     this.mLoading = false;
   }
   String str = InfoManager.getInstance().getUserProfile().getUserKey();
   if (ChatMode.isGroup())
   {
     if ((IMAgent.getInstance().isCheckin(paramInt)) && (this.mTalkingGroupInfo != null) && (!IMAgent.getInstance().hasCheckIn(this.mTalkingGroupInfo.groupId)))
       paramString = IMAgent.getInstance().getCheckinText();
     IMAgent.getInstance().sendGroupMsg(paramString, this.mTalkingGroupInfo, paramInt);
     IMMessage localIMMessage2 = new IMMessage();
     localIMMessage2.mMessage = paramString;
     localIMMessage2.chatType = 1;
     localIMMessage2.publish = (System.currentTimeMillis() / 1000L);
     long l2 = localIMMessage2.publish;
     if (l2 - this.mLastTimestamp >= 1800L)
     {
       this.mDatas.add(new ChatItem(32, getTimestampBySecond(l2)));
       this.mLastTimestamp = l2;
     }
     List localList2 = this.mDatas;
     if (isAdmin(str));
     while (true)
     {
       localList2.add(new ChatItem(i, localIMMessage2));
       IMContacts.getInstance().addRecentContacts(this.mTalkingGroupInfo);
       this.mAdapter.notifyDataSetChanged();
       return;
       i = 1;
     }
   }
   if (this.mTalkingBlocked)
   {
     Toast.makeText(getContext(), "该账号已经被举报,无法接收消息", 1).show();
     return;
   }
   IMAgent.getInstance().sendUserMsg(paramString, this.mTalkingUserInfo, paramInt);
   IMMessage localIMMessage1 = new IMMessage();
   localIMMessage1.mMessage = paramString;
   localIMMessage1.chatType = 0;
   localIMMessage1.publish = (System.currentTimeMillis() / 1000L);
   long l1 = localIMMessage1.publish;
   if (l1 - this.mLastTimestamp >= 1800L)
   {
     this.mDatas.add(new ChatItem(32, getTimestampBySecond(l1)));
     this.mLastTimestamp = l1;
   }
   List localList1 = this.mDatas;
   if (isAdmin(str));
   while (true)
   {
     localList1.add(new ChatItem(i, localIMMessage1));
     IMContacts.getInstance().addRecentContacts(this.mTalkingUserInfo);
     break;
     i = 1;
   }
 }
예제 #24
0
 private void drawSubInfo(Canvas paramCanvas)
 {
   Object localObject2 = null;
   int i;
   Object localObject1;
   if (this.mNode.nodeName.equalsIgnoreCase("program"))
   {
     i = ((ProgramNode)this.mNode).getCurrPlayStatus();
     if (i == 1)
     {
       this.livePaint.setColor(SkinManager.getLiveColor());
       localObject2 = "直播";
       localObject1 = ((ProgramNode)this.mNode).startTime;
       localObject1 = (String)localObject1 + "-";
       localObject1 = (String)localObject1 + ((ProgramNode)this.mNode).endTime;
       i = 0;
     }
   }
   while (true)
   {
     Object localObject3 = SkinManager.getInstance().getSubTextPaint();
     if ((localObject2 != null) && (localObject1 != null))
     {
       this.livePaint.getTextBounds((String)localObject2, 0, ((String)localObject2).length(), this.textBound);
       f1 = this.infoLayout.getLeft();
       f2 = this.channelLayout.topMargin + this.channelLayout.height + this.infoLayout.topMargin + (this.infoLayout.height - this.textBound.top - this.textBound.bottom) / 2;
       paramCanvas.drawText((String)localObject2, f1, f2, this.livePaint);
       f3 = this.textBound.width();
       float f4 = this.infoLayout.getLeft() / 2;
       ((TextPaint)localObject3).getTextBounds((String)localObject1, 0, ((String)localObject1).length(), this.textBound);
       paramCanvas.drawText((String)localObject1, f1 + f3 + f4, f2, (Paint)localObject3);
     }
     do
     {
       return;
       if (i == 2)
       {
         if (InfoManager.getInstance().root().mPersonalCenterNode.reserveNode.isExisted(this.mNode));
         for (localObject1 = "己预约"; ; localObject1 = "预约")
         {
           this.livePaint.setColor(SkinManager.getTextColorHighlight());
           localObject2 = ((ProgramNode)this.mNode).startTime;
           localObject2 = (String)localObject2 + "-";
           localObject3 = (String)localObject2 + ((ProgramNode)this.mNode).endTime;
           localObject2 = localObject1;
           localObject1 = localObject3;
           i = 0;
           break;
         }
       }
       if (((ProgramNode)this.mNode).channelType == 0)
       {
         localObject1 = ((ProgramNode)this.mNode).startTime;
         localObject1 = (String)localObject1 + "-";
         localObject1 = (String)localObject1 + ((ProgramNode)this.mNode).endTime;
         i = 1;
         break;
       }
       localObject1 = getDurationTime(((ProgramNode)this.mNode).getDuration());
       i = 0;
       break;
       if (i == 0)
         break label728;
       ((TextPaint)localObject3).getTextBounds("回听:", 0, "回听:".length(), this.textBound);
       f1 = this.infoLayout.getLeft();
       paramCanvas.drawText("回听:", f1, this.channelLayout.topMargin + this.channelLayout.height + this.infoLayout.topMargin + (this.infoLayout.height - this.textBound.top - this.textBound.bottom) / 2, (Paint)localObject3);
     }
     while ((localObject1 == null) || (((String)localObject1).equalsIgnoreCase("")));
     float f2 = this.textBound.width();
     float f3 = this.infoLayout.getLeft() / 2;
     ((TextPaint)localObject3).getTextBounds((String)localObject1, 0, ((String)localObject1).length(), this.textBound);
     paramCanvas.drawText((String)localObject1, f2 + f1 + f3, this.channelLayout.topMargin + this.channelLayout.height + this.infoLayout.topMargin + (this.infoLayout.height - this.textBound.top - this.textBound.bottom) / 2, (Paint)localObject3);
     return;
     label728: ((TextPaint)localObject3).getTextBounds("时长:", 0, "时长:".length(), this.textBound);
     float f1 = this.infoLayout.getLeft();
     paramCanvas.drawText("时长:", f1, this.channelLayout.topMargin + this.channelLayout.height + this.infoLayout.topMargin + (this.infoLayout.height - this.textBound.top - this.textBound.bottom) / 2, (Paint)localObject3);
     f2 = this.textBound.width();
     f3 = this.infoLayout.getLeft() / 2;
     ((TextPaint)localObject3).getTextBounds((String)localObject1, 0, ((String)localObject1).length(), this.textBound);
     paramCanvas.drawText((String)localObject1, f2 + f1 + f3, this.channelLayout.topMargin + this.channelLayout.height + this.infoLayout.topMargin + (this.infoLayout.height - this.textBound.top - this.textBound.bottom) / 2, (Paint)localObject3);
     return;
     i = 0;
     localObject1 = null;
   }
 }