Fix NPE
This commit is contained in:
@@ -173,8 +173,9 @@ class WifiApDialogFragment : AlertDialogFragment<WifiApDialogFragment.Arg, WifiA
|
|||||||
true
|
true
|
||||||
}
|
}
|
||||||
android.R.id.paste -> {
|
android.R.id.paste -> {
|
||||||
app.clipboard.primaryClip?.getItemAt(0)?.text?.let {
|
app.clipboard.primaryClip?.getItemAt(0)?.text?.apply {
|
||||||
populateFromConfiguration(Base64.decode(it.toString(), BASE64_FLAGS).toParcelable())
|
Base64.decode(toString(), BASE64_FLAGS).toParcelable<WifiConfiguration>()
|
||||||
|
?.let { populateFromConfiguration(it) }
|
||||||
}
|
}
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user