mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-14 18:35:30 +00:00
Simplification
This commit is contained in:
parent
7ec3cd72db
commit
46bf9d2cf7
1 changed files with 1 additions and 16 deletions
|
@ -169,23 +169,8 @@ public class FragmentContacts extends FragmentBase {
|
|||
@NonNull
|
||||
@Override
|
||||
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
|
||||
final View dview = LayoutInflater.from(getContext()).inflate(R.layout.dialog_ask_again, null);
|
||||
final TextView tvMessage = dview.findViewById(R.id.tvMessage);
|
||||
final ImageButton ibInfo = dview.findViewById(R.id.ibInfo);
|
||||
final TextView tvRemark = dview.findViewById(R.id.tvRemark);
|
||||
final CheckBox cbConfirm = dview.findViewById(R.id.cbConfirm);
|
||||
CheckBox cbNotAgain = dview.findViewById(R.id.cbNotAgain);
|
||||
final TextView tvAccept = dview.findViewById(R.id.tvAccept);
|
||||
|
||||
tvMessage.setText(getString(R.string.title_delete_contacts));
|
||||
ibInfo.setVisibility(View.GONE);
|
||||
tvRemark.setVisibility(View.GONE);
|
||||
cbNotAgain.setVisibility(View.GONE);
|
||||
cbConfirm.setVisibility(View.GONE);
|
||||
tvAccept.setVisibility(View.GONE);
|
||||
|
||||
return new AlertDialog.Builder(getContext())
|
||||
.setView(dview)
|
||||
.setMessage(getString(R.string.title_delete_contacts))
|
||||
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
|
|
Loading…
Reference in a new issue