Revert "Long press to/cc/bcc person to enable/disable send chips"

This reverts commit 89361fffa6.
pull/194/merge
M66B 3 years ago
parent 2baa9c8128
commit 606d90b1f1

@ -232,13 +232,10 @@ public class FragmentCompose extends FragmentBase {
private Spinner spIdentity; private Spinner spIdentity;
private EditText etExtra; private EditText etExtra;
private TextView tvDomain; private TextView tvDomain;
private ImageView ivToLegend;
private MultiAutoCompleteTextView etTo; private MultiAutoCompleteTextView etTo;
private ImageButton ibToAdd; private ImageButton ibToAdd;
private ImageView ivCcLegend;
private MultiAutoCompleteTextView etCc; private MultiAutoCompleteTextView etCc;
private ImageButton ibCcAdd; private ImageButton ibCcAdd;
private ImageView ivBccLegend;
private MultiAutoCompleteTextView etBcc; private MultiAutoCompleteTextView etBcc;
private ImageButton ibBccAdd; private ImageButton ibBccAdd;
private EditText etSubject; private EditText etSubject;
@ -354,13 +351,10 @@ public class FragmentCompose extends FragmentBase {
spIdentity = view.findViewById(R.id.spIdentity); spIdentity = view.findViewById(R.id.spIdentity);
etExtra = view.findViewById(R.id.etExtra); etExtra = view.findViewById(R.id.etExtra);
tvDomain = view.findViewById(R.id.tvDomain); tvDomain = view.findViewById(R.id.tvDomain);
ivToLegend = view.findViewById(R.id.ivToLegend);
etTo = view.findViewById(R.id.etTo); etTo = view.findViewById(R.id.etTo);
ibToAdd = view.findViewById(R.id.ibToAdd); ibToAdd = view.findViewById(R.id.ibToAdd);
ivCcLegend = view.findViewById(R.id.ivCcLegend);
etCc = view.findViewById(R.id.etCc); etCc = view.findViewById(R.id.etCc);
ibCcAdd = view.findViewById(R.id.ibCcAdd); ibCcAdd = view.findViewById(R.id.ibCcAdd);
ivBccLegend = view.findViewById(R.id.ivBccLegend);
etBcc = view.findViewById(R.id.etBcc); etBcc = view.findViewById(R.id.etBcc);
ibBccAdd = view.findViewById(R.id.ibBccAdd); ibBccAdd = view.findViewById(R.id.ibBccAdd);
etSubject = view.findViewById(R.id.etSubject); etSubject = view.findViewById(R.id.etSubject);
@ -503,23 +497,6 @@ public class FragmentCompose extends FragmentBase {
} }
}); });
View.OnLongClickListener onSendChips = new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
try {
onMenuSendChips();
invalidateOptionsMenu();
} catch (Throwable ex) {
Log.e(ex);
}
return true;
}
};
ivToLegend.setOnLongClickListener(onSendChips);
ivCcLegend.setOnLongClickListener(onSendChips);
ivBccLegend.setOnLongClickListener(onSendChips);
View.OnClickListener onPick = new View.OnClickListener() { View.OnClickListener onPick = new View.OnClickListener() {
@Override @Override
public void onClick(View view) { public void onClick(View view) {

Loading…
Cancel
Save