X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Fdialogs%2FCreateBookmarkDialog.kt;fp=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Fdialogs%2FCreateBookmarkDialog.kt;h=145c895b88175fb1c51f97354038515572daff90;hp=545f2fc9a80ab6a48e0c7f536689824d8165e47b;hb=97ff4463a390d0b789f19d1c45bf9fc47428c86c;hpb=31e82dfc6235a460886d7dc9cdd1fbcba8ce695c diff --git a/app/src/main/java/com/stoutner/privacybrowser/dialogs/CreateBookmarkDialog.kt b/app/src/main/java/com/stoutner/privacybrowser/dialogs/CreateBookmarkDialog.kt index 545f2fc9..145c895b 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/dialogs/CreateBookmarkDialog.kt +++ b/app/src/main/java/com/stoutner/privacybrowser/dialogs/CreateBookmarkDialog.kt @@ -81,7 +81,7 @@ class CreateBookmarkDialog : DialogFragment() { // The public interface is used to send information back to the parent activity. interface CreateBookmarkListener { - fun onCreateBookmark(dialogFragment: DialogFragment, favoriteIconBitmap: Bitmap) + fun createBookmark(dialogFragment: DialogFragment, favoriteIconBitmap: Bitmap) } override fun onAttach(context: Context) { @@ -125,7 +125,7 @@ class CreateBookmarkDialog : DialogFragment() { // 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. - createBookmarkListener.onCreateBookmark(this, favoriteIconBitmap) + createBookmarkListener.createBookmark(this, favoriteIconBitmap) } // Create an alert dialog from the builder. @@ -159,7 +159,7 @@ class CreateBookmarkDialog : DialogFragment() { // Check the key code and event. if (keyCode == KeyEvent.KEYCODE_ENTER && keyEvent.action == KeyEvent.ACTION_DOWN) { // The event is a key-down on the enter key. // Trigger the create bookmark listener and return the dialog fragment and the favorite icon bitmap to the parent activity. - createBookmarkListener.onCreateBookmark(this, favoriteIconBitmap) + createBookmarkListener.createBookmark(this, favoriteIconBitmap) // Manually dismiss the alert dialog. alertDialog.dismiss() @@ -177,7 +177,7 @@ class CreateBookmarkDialog : DialogFragment() { // Check the key code and event. if (keyCode == KeyEvent.KEYCODE_ENTER && keyEvent.action == KeyEvent.ACTION_DOWN) { // The event is a key-down on the enter key. // Trigger the create bookmark listener and return the dialog fragment and the favorite icon bitmap to the parent activity. - createBookmarkListener.onCreateBookmark(this, favoriteIconBitmap) + createBookmarkListener.createBookmark(this, favoriteIconBitmap) // Manually dismiss the alert dialog. alertDialog.dismiss() @@ -193,4 +193,4 @@ class CreateBookmarkDialog : DialogFragment() { // Return the alert dialog. return alertDialog } -} \ No newline at end of file +}