]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/CreateBookmark.java
Add a download file `AlertDialog` that allows setting the download file name. Fixes...
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / CreateBookmark.java
index b779709c4e35248919594e66a6ccbdf2fed15a35..4b09ba1a4ca102021fb4b63cab5c7119aa9f2c2e 100644 (file)
@@ -36,8 +36,6 @@ import android.widget.EditText;
 public class CreateBookmark extends DialogFragment {
     // The public interface is used to send information back to the parent activity.
     public interface CreateBookmarkListener {
-        void onCancelCreateBookmark(DialogFragment dialogFragment);
-
         void onCreateBookmark(DialogFragment dialogFragment);
     }
 
@@ -72,8 +70,7 @@ public class CreateBookmark extends DialogFragment {
         dialogBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {
             @Override
             public void onClick(DialogInterface dialog, int which) {
-                // Return the `DialogFragment` to the parent activity on cancel.
-                createBookmarkListener.onCancelCreateBookmark(CreateBookmark.this);
+                // Do nothing.  The `AlertDialog` will close automatically.
             }
         });