pull/94/head
kunfei 5 years ago
parent f3bb8e5517
commit 70b0625700
  1. 2
      app/src/main/java/io/legado/app/help/http/SSLHelper.kt
  2. 2
      app/src/main/java/io/legado/app/ui/widget/font/FontSelectDialog.kt

@ -139,7 +139,7 @@ object SSLHelper {
val keyStore = KeyStore.getInstance(KeyStore.getDefaultType())
keyStore.load(null)
for ((index, certStream) in certificates.withIndex()) {
val certificateAlias = Integer.toString(index)
val certificateAlias = index.toString()
// 证书工厂根据证书文件的流生成证书 cert
val cert = certificateFactory.generateCertificate(certStream)
// 将 cert 作为可信证书放入到keyStore中

@ -34,7 +34,7 @@ class FontSelectDialog : DialogFragment(),
Toolbar.OnMenuItemClickListener,
CoroutineScope,
FontAdapter.CallBack {
lateinit var job: Job
private lateinit var job: Job
private val fontFolderRequestCode = 35485
private val fontFolder =
App.INSTANCE.filesDir.absolutePath + File.separator + "Fonts" + File.separator

Loading…
Cancel
Save