ConversationActivity.java 文件源码

java
阅读 40 收藏 0 点赞 0 评论 0

项目:TextSecureSMP 作者:
private void handleUnblock() {
  new AlertDialogWrapper.Builder(this)
      .setTitle(R.string.ConversationActivity_unblock_question)
      .setMessage(R.string.ConversationActivity_are_you_sure_you_want_to_unblock_this_contact)
      .setNegativeButton(android.R.string.cancel, null)
      .setPositiveButton(R.string.ConversationActivity_unblock, new DialogInterface.OnClickListener() {
        @Override
        public void onClick(DialogInterface dialog, int which) {
          recipients.setBlocked(false);

          new AsyncTask<Void, Void, Void>() {
            @Override
            protected Void doInBackground(Void... params) {
              DatabaseFactory.getRecipientPreferenceDatabase(ConversationActivity.this)
                             .setBlocked(recipients, false);
              return null;
            }
          }.execute();
        }
      }).show();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号