Fix a crash
This commit is contained in:
@@ -491,7 +491,9 @@ class WifiApDialogFragment : AlertDialogFragment<WifiApDialogFragment.Arg, WifiA
|
|||||||
android.R.id.copy -> try {
|
android.R.id.copy -> try {
|
||||||
app.clipboard.setPrimaryClip(ClipData.newPlainText(null,
|
app.clipboard.setPrimaryClip(ClipData.newPlainText(null,
|
||||||
Base64.encodeToString(generateConfig().toByteArray(), BASE64_FLAGS)).apply {
|
Base64.encodeToString(generateConfig().toByteArray(), BASE64_FLAGS)).apply {
|
||||||
|
if (Build.VERSION.SDK_INT >= 24) {
|
||||||
description.extras = persistableBundleOf(ClipDescription.EXTRA_IS_SENSITIVE to true)
|
description.extras = persistableBundleOf(ClipDescription.EXTRA_IS_SENSITIVE to true)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
true
|
true
|
||||||
} catch (e: RuntimeException) {
|
} catch (e: RuntimeException) {
|
||||||
|
|||||||
Reference in New Issue
Block a user