- companion object {
- // `@JvmStatic` will no longer be required once all the code has transitioned to Kotlin.
- @JvmStatic
- fun addDomain(urlString: String): AddDomainDialog {
- // Create an arguments bundle.
- val argumentsBundle = Bundle()
-
- // Store the URL in the bundle.
- argumentsBundle.putString(URL_STRING, urlString)
-
- // Create a new instance of the dialog.
- val addDomainDialog = AddDomainDialog()
-
- // Add the arguments bundle to the dialog.
- addDomainDialog.arguments = argumentsBundle
-
- // Return the new dialog.
- return addDomainDialog
- }
- }
-
- // `@SuppressLint("InflateParams")` removes the warning about using `null` as the parent view group when inflating the alert dialog.
- @SuppressLint("InflateParams")