]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/dialogs/FontSizeDialog.kt
Standardize suggested file names. https://redmine.stoutner.com/issues/951
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / dialogs / FontSizeDialog.kt
index 5b6428fcb4061e200a89e8c338d35522165abdde..86e82efca059ceb176434a6566060bcac26fcffd 100644 (file)
@@ -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()