コード例 #1
0
 private void updateDataToDatabase() {
   ThreadFacade.runOnSingleThread(
       new Runnable() {
         @Override
         public void run() {
           UserDetailFacade.updateUserDetainInfo(mUserDetailInfo.toUserDetailInfoData());
         }
       });
 }
コード例 #2
0
 @Override
 public void onRecevicedMsg(int msgRoomType, final String jid, final String msg) {
   ThreadFacade.runOnSingleThread(
       new Runnable() {
         @Override
         public void run() {
           onReceivedReplyMessage(jid, msg);
         }
       });
 }
コード例 #3
0
 private void onClickReplyInSubThread(final String msg) {
   if (!isNetworkConnected()) {
     return;
   }
   showLoadingView(R.string.detail_reply_requesting);
   ThreadFacade.runOnSingleThread(
       new Runnable() {
         @Override
         public void run() {
           replyMessage(Integer.parseInt(mUid), msg);
           mCurrentComment = msg;
         }
       });
 }