]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/dialogs/OpenDialog.kt
First wrong button text in View Headers in night theme. https://redmine.stoutner...
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / dialogs / OpenDialog.kt
index ba42214373d8fe7df0a40cfbf07f001a831fd53e..c112a917d6a9bac3727077643daa7ef5f463bf6d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2019-2022 Soren Stoutner <soren@stoutner.com>.
+ * Copyright 2019-2023 Soren Stoutner <soren@stoutner.com>.
  *
  * This file is part of Privacy Browser Android <https://www.stoutner.com/privacy-browser-android>.
  *
@@ -53,7 +53,7 @@ class OpenDialog : DialogFragment() {
 
     // The public interface is used to send information back to the parent activity.
     interface OpenListener {
-        fun onOpen(dialogFragment: DialogFragment)
+        fun openFile(dialogFragment: DialogFragment)
     }
 
     override fun onAttach(context: Context) {
@@ -98,7 +98,7 @@ class OpenDialog : DialogFragment() {
         // Set the open button listener.
         dialogBuilder.setPositiveButton(R.string.open) { _: DialogInterface?, _: Int ->
             // Return the dialog fragment to the parent activity.
-            openListener.onOpen(this)
+            openListener.openFile(this)
         }
 
         // Create an alert dialog from the builder.