// Set a listener on the create button.
dialogBuilder.setPositiveButton(R.string.create) { _: DialogInterface, _: Int ->
// Return the dialog fragment and the favorite icon bitmap to the parent activity.
// Set a listener on the create button.
dialogBuilder.setPositiveButton(R.string.create) { _: DialogInterface, _: Int ->
// Return the dialog fragment and the favorite icon bitmap to the parent activity.