Imporoved license dialog

This commit is contained in:
archroid 2022-05-20 18:05:05 +04:30
parent b8bc08aea3
commit 2c1820951b
No known key found for this signature in database
GPG Key ID: D8EE5C11EDF911B1

View File

@ -24,6 +24,7 @@ import androidx.preference.ListPreference
import androidx.preference.Preference import androidx.preference.Preference
import androidx.preference.PreferenceFragmentCompat import androidx.preference.PreferenceFragmentCompat
import androidx.preference.PreferenceManager import androidx.preference.PreferenceManager
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import java.io.IOException import java.io.IOException
import java.io.InputStream import java.io.InputStream
import java.util.zip.ZipEntry import java.util.zip.ZipEntry
@ -268,7 +269,7 @@ class SettingsActivity :
} else { } else {
Html.fromHtml(licenseString) Html.fromHtml(licenseString)
} }
AlertDialog.Builder(view?.context!!) MaterialAlertDialogBuilder(view?.context!!)
.setPositiveButton(getString(R.string.okay), DialogInterface.OnClickListener { _, _ -> }) .setPositiveButton(getString(R.string.okay), DialogInterface.OnClickListener { _, _ -> })
.setMessage(licenseHtml) .setMessage(licenseHtml)
.create() .create()