X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Fdialogs%2FFontSizeDialog.kt;fp=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Fdialogs%2FFontSizeDialog.kt;h=86e82efca059ceb176434a6566060bcac26fcffd;hp=5b6428fcb4061e200a89e8c338d35522165abdde;hb=97ff4463a390d0b789f19d1c45bf9fc47428c86c;hpb=31e82dfc6235a460886d7dc9cdd1fbcba8ce695c diff --git a/app/src/main/java/com/stoutner/privacybrowser/dialogs/FontSizeDialog.kt b/app/src/main/java/com/stoutner/privacybrowser/dialogs/FontSizeDialog.kt index 5b6428fc..86e82efc 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/dialogs/FontSizeDialog.kt +++ b/app/src/main/java/com/stoutner/privacybrowser/dialogs/FontSizeDialog.kt @@ -63,7 +63,7 @@ class FontSizeDialog : DialogFragment() { // The public interface is used to send information back to the parent activity. interface UpdateFontSizeListener { - fun onApplyNewFontSize(dialogFragment: DialogFragment) + fun updateFontSize(dialogFragment: DialogFragment) } override fun onAttach(context: Context) { @@ -96,7 +96,7 @@ class FontSizeDialog : DialogFragment() { // Set the apply button listener. dialogBuilder.setPositiveButton(R.string.apply) { _: DialogInterface?, _: Int -> // Return the dialog fragment to the parent activity. - updateFontSizeListener.onApplyNewFontSize(this) + updateFontSizeListener.updateFontSize(this) } // Create an alert dialog from the builder. @@ -136,7 +136,7 @@ class FontSizeDialog : DialogFragment() { // Check the key code, event, and button status. if (keyEvent.action == KeyEvent.ACTION_DOWN && keyCode == KeyEvent.KEYCODE_ENTER) { // The enter key was pressed. // Trigger the update font size listener and return the dialog fragment to the parent activity. - updateFontSizeListener.onApplyNewFontSize(this) + updateFontSizeListener.updateFontSize(this) // Manually dismiss the alert dialog. alertDialog.dismiss()