Merge pull request #262 from archroid/master

Imporoved license dialog
This commit is contained in:
archroid 2022-05-20 18:06:34 +04:30 committed by GitHub
commit bd1a5831d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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