- // Convert the file name string to a file.
- val file = File(fileNameString)
-
- // Check to see if the file exists.
- if (file.exists()) {
- // Show the file exists warning.
- fileExistsWarningTextView.visibility = View.VISIBLE
- } else {
- // Hide the file exists warning.
- fileExistsWarningTextView.visibility = View.GONE
- }
-
- // Enable the save button if the file name is populated.
- saveButton.isEnabled = fileNameString.isNotEmpty()
- }
- })
-
- // Set the file name according to the type.
- when (saveType) {
- SAVE_LOGCAT -> fileName = getString(R.string.privacy_browser_logcat_txt)
- SAVE_ABOUT_VERSION_TEXT -> fileName = getString(R.string.privacy_browser_version_txt)
- SAVE_ABOUT_VERSION_IMAGE -> fileName = getString(R.string.privacy_browser_version_png)
+ // Disable the editing of the URL edit text.
+ urlEditText.inputType = InputType.TYPE_NULL
+ } else { // The URL contains a reference to the location of the data.
+ // Populate the URL edit text with the full URL.
+ urlEditText.setText(originalUrlString)