mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-06 01:20:29 +05:30
Imporoved license dialog
This commit is contained in:
parent
b8bc08aea3
commit
2c1820951b
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user