Chapter 18: PhotoOptionDialogFragment 3 Errors

The book code, as is, produces 3 compiler errors (hence app cannot run).

(this.context) twice
return AlertDialog.Builder(activity)
images below. Please advise the new correct code to proceed. Thanks.
PhotoErrors

The following code changes work, but I am not sure about using !! Grateful for confirmation or advice on proper syntax.

Photo%20Corrections

@tblank Can you please help with this when you get a chance? Thank you - much appreciated! :]