]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/dialogs/AboutViewSourceDialog.kt
Fix a crash when opening a drawer while restarting. https://redmine.stoutner.com...
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / dialogs / AboutViewSourceDialog.kt
index 5089fa22ca8104c121db09d5405f133b80a6aeaf..a862fb44ffcaaae8170b4563de1a854ca735b553 100644 (file)
@@ -32,7 +32,7 @@ import com.stoutner.privacybrowser.R
 class AboutViewSourceDialog : DialogFragment() {
     override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
         // Use a builder to create the alert dialog.
-        val dialogBuilder: AlertDialog.Builder = AlertDialog.Builder(requireContext(), R.style.PrivacyBrowserAlertDialog)
+        val dialogBuilder = AlertDialog.Builder(requireContext(), R.style.PrivacyBrowserAlertDialog)
 
         // Set the icon according to the theme.
         dialogBuilder.setIconAttribute(R.attr.aboutBlueIcon)
@@ -43,7 +43,7 @@ class AboutViewSourceDialog : DialogFragment() {
         // Set the text.
         dialogBuilder.setMessage(R.string.about_view_source_message)
 
-        // Set a listener on the close button.  Using `null` as the listener closes the dialog without doing anything else.
+        // Set the close button listener.  Using `null` as the listener closes the dialog without doing anything else.
         dialogBuilder.setNegativeButton(R.string.close, null)
 
         // Create an alert dialog from the alert dialog builder.