- // The `AlertDialog` must be shown before the contents can be edited.
+ // The alert dialog must be shown before the contents can be edited.
alertDialog.show();
alertDialog.show();
- // Initialize `domainsDatabaseHelper`. The two `nulls` do not specify the database name or a `CursorFactory`. The `0` specifies the database version, but that is ignored and set instead using a constant in `DomainsDatabaseHelper`.
+ // Initialize `domainsDatabaseHelper`. The `0` specifies the database version, but that is ignored and set instead using a constant in `DomainsDatabaseHelper`.
final DomainsDatabaseHelper domainsDatabaseHelper = new DomainsDatabaseHelper(getContext(), null, null, 0);
final DomainsDatabaseHelper domainsDatabaseHelper = new DomainsDatabaseHelper(getContext(), null, null, 0);
- // Get handles for the views in `alertDialog`.
+ // Get handles for the views in the alert dialog.
final EditText addDomainEditText = alertDialog.findViewById(R.id.domain_name_edittext);
final TextView domainNameAlreadyExistsTextView = alertDialog.findViewById(R.id.domain_name_already_exists_textview);
final Button addButton = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE);
final EditText addDomainEditText = alertDialog.findViewById(R.id.domain_name_edittext);
final TextView domainNameAlreadyExistsTextView = alertDialog.findViewById(R.id.domain_name_already_exists_textview);
final Button addButton = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE);
- // Update the status of the warning text and the `add` button.
+ // Update the status of the warning text and the add button.