@Override public void setText(CharSequence text, BufferType type) { mSettingText = true; super.setText(text, type); mSettingText = false; }
@Override public void setText(CharSequence text, BufferType type) { super.setText(text, type); createPasswordSpans(); }
private void performReplyComment(int position) { String currentMessage = mBinding.reviewInfo.reviewComment.getText().toString(); String replyMessage = mMessageAdapter.getMessage(position); String msg = StringHelper.quoteMessage(currentMessage, replyMessage); mBinding.reviewInfo.reviewComment.setText(msg); mBinding.reviewInfo.reviewComment.setSelection(msg.length()); mBinding.nestedScroll.fullScroll(View.FOCUS_DOWN); }
@Override protected void refresh() { super.refresh(); if (mTextView != null && mTitleText != null) { mTextView.setText(mTitleText); } if (mEditTextView != null) { if (mHintText != null) { mEditTextView.setHint(mHintText); } if (mInputType != 0) { mEditTextView.setInputType(mInputType); } if (mText != null) { mEditTextView.setText(mText); mEditTextView.setSelection(mText.length()); } } } }
LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT)); if (text2 != null) { editText2.setText(text2);
@Override public void onNext(Pair<ReviewInput, ReviewInfo> review) { setProcessing(false); mReviewLoader.clear(); // CleanUp attachment list ArrayList<Attachment> attachments = new ArrayList<>(mAttachments); mAttachments.clear(); mBinding.reviewInfo.setAttachmentsSupport(mAttachmentsSupport); // Clean the message box mBinding.reviewInfo.reviewComment.setText(null); //noinspection ConstantConditions AndroidHelper.hideSoftKeyboard(getContext(), getActivity().getWindow()); // Update the messages (since it was update at server side, we can temporary // update the message list until a full refresh happens) ModelHelper.updateChangeMessageInfo(mAccount, mResponse.mChange, review.first); mMessageAdapter.update(mModel.msgListModel, mResponse.mChange, mResponse.mMessagesWithComments, null); // Fetch the whole change forceRefresh(); // Upload the content of the attachments (skip url shortcuts) if (!attachments.isEmpty()) { AttachmentsContentUploadService.enqueueWork(getActivity(), attachments); } }