X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Fdialogs%2FFontSizeDialog.kt;h=86e82efca059ceb176434a6566060bcac26fcffd;hb=b23ac211c2edb57804cbf10e8027358b6795e4dc;hp=5b6428fcb4061e200a89e8c338d35522165abdde;hpb=dc36dea65a4eb37496fb1ecbbd9f8e1906f50216;p=PrivacyBrowserAndroid.git 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()