コード例 #1
0
 private final void actualShareGroup()
 {
   if (this.mTalkingGroupInfo == null)
     return;
   Locale localLocale = Locale.CHINESE;
   String str1 = CONTENTS[1];
   Object[] arrayOfObject = new Object[1];
   arrayOfObject[0] = this.mTalkingGroupInfo.groupName;
   String str2 = String.format(localLocale, str1, arrayOfObject);
   QTMSGManage.getInstance().sendStatistcsMessage("im_share");
   ShareUtil.shareToPlatform(str2, 1, 2);
 }
コード例 #2
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;
 }
コード例 #3
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;
   }
 }
コード例 #4
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;
   }
 }
コード例 #5
0
 private void invite(int paramInt)
 {
   QTMSGManage.getInstance().sendStatistcsMessage("im_invite", String.valueOf(paramInt));
   ShareUtil.inviteByPlatformIm(getContext(), paramInt, CONTENTS[3]);
 }